diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 20b777c25d..f18eb4c6a0 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -104,6 +104,7 @@ func New(gasTip uint64, chain BlockChain, subpools []SubPool) (*TxPool, error) { return pool, nil } +// FlushAllTransactions removes all transactions from all subpools func (p *TxPool) FlushAllTransactions() { for _, subpool := range p.subpools { subpool.FlushAllTransactions()