aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-14 00:47:11 +0800
committerobscuren <geffobscura@gmail.com>2015-03-14 00:47:11 +0800
commit03403399fcd4abf106a098f15bc7186197bd09bc (patch)
treeb5ebbf0330c6cc2d6aff3100511c4843c2d8593a /miner/worker.go
parenta0266489b4592af751d87c59087ed25a32899de6 (diff)
downloadgo-tangerine-03403399fcd4abf106a098f15bc7186197bd09bc.tar.gz
go-tangerine-03403399fcd4abf106a098f15bc7186197bd09bc.tar.zst
go-tangerine-03403399fcd4abf106a098f15bc7186197bd09bc.zip
Return proper error
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 9bcea1539..a39a0b43b 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -212,6 +212,7 @@ gasLimit:
fallthrough
case core.IsInvalidTxErr(err):
// Remove invalid transactions
+ self.chain.TxState().RemoveNonce(tx.From(), tx.Nonce())
remove = append(remove, tx)
case state.IsGasLimitErr(err):
// Break on gas limit