ignore invalid txs right after being added if they prove incorrect

This commit is contained in:
obscuren
2015-04-08 18:08:21 +02:00
parent 1c872ddf4b
commit f08e9cbe42
2 changed files with 6 additions and 2 deletions

View File

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