From cb8ea89473b5b7b7eaced339789e0e4ed1fed5f3 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Thu, 26 Sep 2024 15:36:35 +0700 Subject: [PATCH] add comment --- core/txpool/txpool.go | 1 + 1 file changed, 1 insertion(+) 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()