From 0c5e964d4e19da070f03ae681483e4ec4ab80d9a Mon Sep 17 00:00:00 2001 From: ethers Date: Fri, 20 Mar 2015 16:40:15 -0700 Subject: [PATCH] log the error when tx failed --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 10fc6f508c..9428ca239c 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -210,7 +210,7 @@ gasLimit: // Remove invalid transactions self.chain.TxState().RemoveNonce(tx.From(), tx.Nonce()) 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): minerlogger.Infof("Gas limit reached for block. %d TXs included in this block\n", i) // Break on gas limit