ignore invalid txs right after being added if they prove incorrect
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user