Commit e294bb81 authored by duanjinfei's avatar duanjinfei

del for

parent f8a0dbe3
......@@ -5,7 +5,6 @@ import (
"ChainGrpcTest/tool"
"ChainGrpcTest/transaction"
"sync"
"time"
)
var (
......@@ -53,15 +52,14 @@ func startTest() {
}
}()
//}
for {
log.Info("----------------------------------start")
//arr := transaction.SignedTxArr(syncMap, SendTxAccountArr, cfg)
arr := transaction.NoSignTxArr(syncMap, SendTxAccountArr, cfg)
log.Info("----------------------------------end")
tranArrChan <- arr
syncMap = updateNonce(syncMap, cfg)
time.Sleep(time.Second * 10)
}
//for {
log.Info("----------------------------------start")
//arr := transaction.SignedTxArr(syncMap, SendTxAccountArr, cfg)
arr := transaction.NoSignTxArr(syncMap, SendTxAccountArr, cfg)
log.Info("----------------------------------end")
tranArrChan <- arr
syncMap = updateNonce(syncMap, cfg)
//}
}
}
func updateNonce(nonceMap sync.Map, cfg *tool.Config) sync.Map {
......
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