Commit 6b67abbf authored by duanjinfei's avatar duanjinfei

change from nonce

parent 6f9bff37
...@@ -92,7 +92,8 @@ func PrSpCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMa ...@@ -92,7 +92,8 @@ func PrSpCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMa
fromAddr := testAccArr.FromAddr[0] fromAddr := testAccArr.FromAddr[0]
coinTrade.FromPrv = testAccArr.FromPrv[0] coinTrade.FromPrv = testAccArr.FromPrv[0]
value, _ := accountNonceMap.Load(fromAddr) value, _ := accountNonceMap.Load(fromAddr)
coinTrade.FromNonce = big.NewInt(value.(int64)) nonce := value.(int64)
coinTrade.FromNonce = big.NewInt(nonce)
beforeFromBal := util.GetAccBal(client, fromAddr) beforeFromBal := util.GetAccBal(client, fromAddr)
if beforeFromBal == nil { if beforeFromBal == nil {
return nil, nil return nil, nil
...@@ -110,7 +111,6 @@ func PrSpCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMa ...@@ -110,7 +111,6 @@ func PrSpCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMa
log.Error("constructor coin transfer tx err:", err.Error()) log.Error("constructor coin transfer tx err:", err.Error())
continue continue
} }
nonce := value.(int64)
nonce += 1 nonce += 1
coinTrade.FromNonce = big.NewInt(nonce) coinTrade.FromNonce = big.NewInt(nonce)
resTxArr = append(resTxArr, tx) resTxArr = append(resTxArr, tx)
......
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