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
f43a3562
Commit
f43a3562
authored
Mar 21, 2022
by
李伟@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tree list
parent
a105956f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
http.go
http.go
+3
-5
originalTx.go
originalTx.go
+2
-2
No files found.
http.go
View file @
f43a3562
...
...
@@ -825,9 +825,7 @@ func (web *WebServicer) sendBatchTxsFromQueue(fromAddr string, toAddrs []string,
sendToRedisBeginTime
:=
time
.
Now
()
go
func
()
{
for
_
,
originalBatchTxs
:=
range
value
.
RedisTxList
{
fmt
.
Printf
(
"originalBatchTxs %v %v
\n
"
,
originalBatchTxs
.
Hash
,
len
(
originalBatchTxs
.
Txs
))
batchTxsForRedis
<-
&
originalBatchTxs
batchTxsForRedis
<-
originalBatchTxs
}
}()
...
...
@@ -947,7 +945,7 @@ func (web *WebServicer) sendLoop(fromAddr string, toAddrs []string, txCount int,
batchTxs
:=
OriginalBatchTxs
{
Hash
:
hashBytes
,
Txs
:
txs
}
batchTxsForRedis
<-
&
batchTxs
batchTxsForRedis
<-
batchTxs
if
j
==
0
{
sendRedisBeginTime
=
time
.
Now
()
}
...
...
@@ -1083,7 +1081,7 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
batchTxs
:=
OriginalBatchTxs
{
Hash
:
hashBytes
,
Txs
:
txs
}
batchTxsForRedis
<-
&
batchTxs
batchTxsForRedis
<-
batchTxs
if
j
==
0
{
sendRedisBeginTime
=
time
.
Now
()
}
...
...
originalTx.go
View file @
f43a3562
...
...
@@ -19,7 +19,7 @@ var originalTxParam EthClient
var
originalTxPrivateKey
string
=
"9e0944f587e1043d6e303644738b0c7c77ed15b176ca574ed0be40c0b9bbdc3a"
var
originalTxsHashQueue
chan
*
[]
byte
=
make
(
chan
*
[]
byte
,
1000
)
var
batchTxsForRedis
chan
*
OriginalBatchTxs
=
make
(
chan
*
OriginalBatchTxs
,
10000000
)
var
batchTxsForRedis
chan
OriginalBatchTxs
=
make
(
chan
OriginalBatchTxs
,
10000000
)
var
conTxsQueue
chan
ConTxsWithId
=
make
(
chan
ConTxsWithId
,
1000
)
const
batchTxSize
=
4
...
...
@@ -105,7 +105,7 @@ func ProduceOriginalTx() error {
hashesBytes
=
append
(
hashesBytes
,
hashBytes
...
)
batchTxs
:=
OriginalBatchTxs
{
Hash
:
hashBytes
,
Txs
:
txs
}
batchTxsForRedis
<-
&
batchTxs
batchTxsForRedis
<-
batchTxs
}
originalTxsHashQueue
<-
&
hashesBytes
}
else
{
...
...
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