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
616f417a
Commit
616f417a
authored
Mar 08, 2022
by
李伟@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix from addr
parent
e39cf657
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
http.go
http.go
+2
-1
redis.go
redis.go
+1
-9
No files found.
http.go
View file @
616f417a
...
...
@@ -504,7 +504,7 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
if
fromAddr
!=
systemFromAddr
&&
first
{
tx
,
err
=
buildOriginalTx
(
originalTxParam
.
Nonce
,
common
.
HexToAddress
(
fromAddr
),
amount
*
int64
(
txCount
),
big
.
NewInt
(
256
),
nil
)
first
=
false
}
else
{
tx
,
err
=
buildOriginalTx
(
originalTxParam
.
Nonce
,
common
.
HexToAddress
(
toAddrs
[
i
%
addrsL
]),
amount
,
big
.
NewInt
(
256
),
nil
)
}
...
...
@@ -532,6 +532,7 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
txs
=
append
(
txs
,
TxWithFrom
{
[]
byte
(
systemFromAddr
),
tx
})
first
=
false
}
else
{
txs
=
append
(
txs
,
TxWithFrom
{
common
.
HexToAddress
(
fromAddr
)
.
Bytes
(),
...
...
redis.go
View file @
616f417a
...
...
@@ -85,21 +85,13 @@ func Start(redisAddr, passwd string) {
panic
(
err
)
}
// hashlistAsJson, err := json.Marshal(hashs)
// if err != nil {
// panic(err)
// }
hashstr
:=
[]
string
{}
for
_
,
v
:=
range
hashs
{
//fmt.Printf("idx: %d key: %s v: %s \n", k, fmt.Sprintf("%x", batchTxs.Hash), v.Hex())
hashstr
=
append
(
hashstr
,
v
.
Hex
())
}
fmt
.
Printf
(
"batchTxHash %s
list: %v
\n
"
,
fmt
.
Sprintf
(
"%x"
,
batchTxs
.
Hash
),
hashstr
)
fmt
.
Printf
(
"batchTxHash %s
listLen: %d list: %v
\n
"
,
fmt
.
Sprintf
(
"%x"
,
batchTxs
.
Hash
),
len
(
hashstr
),
hashstr
)
if
err
:=
client
.
LPush
(
context
.
Background
(),
fmt
.
Sprintf
(
"%x"
,
batchTxs
.
Hash
),
hashstr
);
err
!=
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