Commit 4dfd9468 authored by duanjinfei's avatar duanjinfei

change cfg init

parent a30e5589
......@@ -18,15 +18,15 @@ func init() {
return
}
cfg.StorageAccFileName += ".xlsx"
cfg.GoRoutineCount = goRoutineCount
cfg.SignCount = txCount / 100
cfg.BatchCount = batchCount
SendTxAccountArr = tool.ReadExcel(cfg.Count, cfg.StorageAccFileName)
}
func startTest() {
log.Infof("Program start initAccCount:%d tranCount", cfg.Count)
arr, fromAddrArr := transaction.SignedTxArr(SendTxAccountArr, cfg)
cfg.GoRoutineCount = goRoutineCount
cfg.SignCount = txCount / 100
cfg.BatchCount = batchCount
if batchSign {
if err := transaction.BatchSignHandler(arr, cfg); err != nil {
log.Errorf("Bath Send Tran error: %s", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment