Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ChainGrpcPro
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
duanjinfei
ChainGrpcPro
Commits
4dfd9468
Commit
4dfd9468
authored
Mar 09, 2023
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change cfg init
parent
a30e5589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
startTest.go
startTest.go
+3
-3
No files found.
startTest.go
View file @
4dfd9468
...
@@ -18,15 +18,15 @@ func init() {
...
@@ -18,15 +18,15 @@ func init() {
return
return
}
}
cfg
.
StorageAccFileName
+=
".xlsx"
cfg
.
StorageAccFileName
+=
".xlsx"
cfg
.
GoRoutineCount
=
goRoutineCount
cfg
.
SignCount
=
txCount
/
100
cfg
.
BatchCount
=
batchCount
SendTxAccountArr
=
tool
.
ReadExcel
(
cfg
.
Count
,
cfg
.
StorageAccFileName
)
SendTxAccountArr
=
tool
.
ReadExcel
(
cfg
.
Count
,
cfg
.
StorageAccFileName
)
}
}
func
startTest
()
{
func
startTest
()
{
log
.
Infof
(
"Program start initAccCount:%d tranCount"
,
cfg
.
Count
)
log
.
Infof
(
"Program start initAccCount:%d tranCount"
,
cfg
.
Count
)
arr
,
fromAddrArr
:=
transaction
.
SignedTxArr
(
SendTxAccountArr
,
cfg
)
arr
,
fromAddrArr
:=
transaction
.
SignedTxArr
(
SendTxAccountArr
,
cfg
)
cfg
.
GoRoutineCount
=
goRoutineCount
cfg
.
SignCount
=
txCount
/
100
cfg
.
BatchCount
=
batchCount
if
batchSign
{
if
batchSign
{
if
err
:=
transaction
.
BatchSignHandler
(
arr
,
cfg
);
err
!=
nil
{
if
err
:=
transaction
.
BatchSignHandler
(
arr
,
cfg
);
err
!=
nil
{
log
.
Errorf
(
"Bath Send Tran error: %s"
,
err
)
log
.
Errorf
(
"Bath Send Tran error: %s"
,
err
)
...
...
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