Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
multisend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟@五瓣科技
multisend
Commits
f6fa7e28
Commit
f6fa7e28
authored
Mar 08, 2022
by
李伟@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix percet
parent
db4d6fbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
http.go
http.go
+17
-5
No files found.
http.go
View file @
f6fa7e28
...
@@ -480,9 +480,25 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
...
@@ -480,9 +480,25 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
consTxNum
:=
0
consTxNum
:=
0
addrsL
:=
len
(
toAddrs
)
addrsL
:=
len
(
toAddrs
)
first
:=
true
first
:=
true
total
:=
txCount
if
fromAddr
!=
systemFromAddr
&&
first
{
total
=
total
+
1
}
for
;
;
consTxNum
++
{
total
=
total
-
batchTxHashSize
*
batchTxSize
if
total
<=
0
{
break
}
}
SetSendRecord
(
id
,
SendRecord
{
TotalConsTx
:
int64
(
consTxNum
)})
for
{
for
{
var
hashesBytes
[]
byte
=
make
([]
byte
,
0
,
32
*
batchTxHashSize
)
var
hashesBytes
[]
byte
=
make
([]
byte
,
0
,
32
*
batchTxHashSize
)
...
@@ -583,14 +599,10 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
...
@@ -583,14 +599,10 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
Tx
:
tx
,
Tx
:
tx
,
BatchTxHash
:
hashesBytes
}
BatchTxHash
:
hashesBytes
}
consTxNum
++
if
txCount
==
0
{
if
txCount
==
0
{
break
break
}
}
}
}
SetSendRecord
(
id
,
SendRecord
{
TotalConsTx
:
int64
(
consTxNum
)})
return
nil
return
nil
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment