mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
log the error when tx failed
This commit is contained in:
parent
4f5b362bda
commit
0c5e964d4e
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ gasLimit:
|
||||||
// Remove invalid transactions
|
// Remove invalid transactions
|
||||||
self.chain.TxState().RemoveNonce(tx.From(), tx.Nonce())
|
self.chain.TxState().RemoveNonce(tx.From(), tx.Nonce())
|
||||||
remove = append(remove, tx)
|
remove = append(remove, tx)
|
||||||
minerlogger.Infof("TX (%x) failed. Transaction will be removed\n", tx.Hash()[:4])
|
minerlogger.Infof("TX (%x) failed, will be removed: %v\n", tx.Hash()[:4], err)
|
||||||
case state.IsGasLimitErr(err):
|
case state.IsGasLimitErr(err):
|
||||||
minerlogger.Infof("Gas limit reached for block. %d TXs included in this block\n", i)
|
minerlogger.Infof("Gas limit reached for block. %d TXs included in this block\n", i)
|
||||||
// Break on gas limit
|
// Break on gas limit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue