log the error when tx failed

This commit is contained in:
ethers 2015-03-20 16:40:15 -07:00
parent 4f5b362bda
commit 0c5e964d4e

View file

@ -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