aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-09 00:08:21 +0800
committerobscuren <geffobscura@gmail.com>2015-04-09 00:08:21 +0800
commitf08e9cbe42dcb067affe0ca1077285ba1b583c95 (patch)
treec2991a3b8d480f963d12c781764401d75002f770 /core
parent1c872ddf4b1db51847a5d9d020e13d432e847f52 (diff)
downloaddexon-f08e9cbe42dcb067affe0ca1077285ba1b583c95.tar.gz
dexon-f08e9cbe42dcb067affe0ca1077285ba1b583c95.tar.zst
dexon-f08e9cbe42dcb067affe0ca1077285ba1b583c95.zip
ignore invalid txs right after being added if they prove incorrect
Diffstat (limited to 'core')
-rw-r--r--core/transaction_pool.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/transaction_pool.go b/core/transaction_pool.go
index 930efdaec..58ea518d6 100644
--- a/core/transaction_pool.go
+++ b/core/transaction_pool.go
@@ -105,6 +105,7 @@ func (self *TxPool) add(tx *types.Transaction) error {
}
err := self.ValidateTransaction(tx)
if err != nil {
+ self.invalidHashes.Add(tx.Hash())
return err
}