Commit e4ab3196 authored by duanjinfei's avatar duanjinfei

add From and Nonce log print

parent b0ed98f1
......@@ -5,6 +5,7 @@ import (
"ChainGrpcTest/tool"
"ChainGrpcTest/transaction"
"sync"
"time"
)
var (
......@@ -52,6 +53,7 @@ func startTest() {
arr := transaction.NoSignTxArr(syncMap, SendTxAccountArr, cfg)
log.Info("----------------------------------end")
tranArrChan <- arr
time.Sleep(time.Second * 10)
syncMap = updateNonce(syncMap, cfg)
}
}
......
......@@ -43,6 +43,7 @@ func BroadcastTxArr(tranArr []*TxFromTran, cfg *tool.Config) error {
if err != nil {
log.Error("gogo types.MarshalAny error:", err)
}
log.Info("From:", tranArr[i].From, "Nonce:", tranArr[i].Tran.Nonce())
request := ring.BroadcastEthTxWithFromRequest{
From: tranArr[i].From,
EthTx: &v1.EthTransaction{Tx: ethTxAsAny},
......
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