Commit 3a3bd5dc authored by duanjinfei's avatar duanjinfei

add verify error logs

parent 50522bc1
...@@ -60,6 +60,8 @@ func NrCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMap ...@@ -60,6 +60,8 @@ func NrCoinTranCase(txCount int, testAccArr *tool.AccArrFormat, accountNonceMap
} }
subBal := sendBeforeBal[fromAddr].Sub(sendBeforeBal[fromAddr], sendAfterBal) subBal := sendBeforeBal[fromAddr].Sub(sendBeforeBal[fromAddr], sendAfterBal)
if subBal.Cmp(amount) != 1 { if subBal.Cmp(amount) != 1 {
log.Error("sendBeforeBal[fromAddr]:", sendBeforeBal[fromAddr])
log.Error("sendAfterBal:", sendAfterBal)
return false return false
} }
} }
......
...@@ -50,8 +50,9 @@ func GetTxReceipt(client *ethclient.Client, txArr []*types.Transaction) { ...@@ -50,8 +50,9 @@ func GetTxReceipt(client *ethclient.Client, txArr []*types.Transaction) {
log.Error("Get tran receipt err:", err) log.Error("Get tran receipt err:", err)
return return
} }
if receipt.Status == 0 { if receipt.Status == 0 || receipt.GasUsed == 0 {
log.Error("Receipt:", receipt) log.Error("tx value:", tx.Value())
log.Error("Receipt Tx Hash:", receipt.TxHash)
} else { } else {
log.Infof("Receipt: status: %d,gasUsed: %d", receipt.Status, receipt.GasUsed) log.Infof("Receipt: status: %d,gasUsed: %d", receipt.Status, receipt.GasUsed)
} }
......
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