Commit a31fcc23 authored by duanjinfei's avatar duanjinfei

add log print

parent 58ff35f5
......@@ -35,6 +35,7 @@ func BroadcastTxArr(tranArr []*types.Transaction, cfg *tool.Config) error {
go broadcastTx(cfg, ringServiceClient)
}
allSignedTxCount = int64(len(tranArr))
log.Info("allSignedTxCount:", allSignedTxCount)
startTime := time.Now()
ethTxArr := make([]*ring.BroadcastEthTxWithFromRequest, 0)
for i := 0; i < int(allSignedTxCount); i++ {
......@@ -61,6 +62,7 @@ func BroadcastTxArr(tranArr []*types.Transaction, cfg *tool.Config) error {
}
}
for {
log.Info("bathHandleSendCount:", bathHandleSendCount)
if bathHandleSendCount == allSignedTxCount {
log.Infof("Send tran count: %d", bathHandleSendCount)
log.Infof("Since time: %d ms", time.Since(startTime).Milliseconds())
......
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