diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-09 00:08:21 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-09 00:08:21 +0800 |
commit | f08e9cbe42dcb067affe0ca1077285ba1b583c95 (patch) | |
tree | c2991a3b8d480f963d12c781764401d75002f770 /core/transaction_pool.go | |
parent | 1c872ddf4b1db51847a5d9d020e13d432e847f52 (diff) | |
download | go-tangerine-f08e9cbe42dcb067affe0ca1077285ba1b583c95.tar.gz go-tangerine-f08e9cbe42dcb067affe0ca1077285ba1b583c95.tar.zst go-tangerine-f08e9cbe42dcb067affe0ca1077285ba1b583c95.zip |
ignore invalid txs right after being added if they prove incorrect
Diffstat (limited to 'core/transaction_pool.go')
-rw-r--r-- | core/transaction_pool.go | 1 |
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 } |