add comment

This commit is contained in:
Jared Wasinger 2024-09-26 15:36:35 +07:00
parent 35fb778349
commit cb8ea89473

View file

@ -104,6 +104,7 @@ func New(gasTip uint64, chain BlockChain, subpools []SubPool) (*TxPool, error) {
return pool, nil return pool, nil
} }
// FlushAllTransactions removes all transactions from all subpools
func (p *TxPool) FlushAllTransactions() { func (p *TxPool) FlushAllTransactions() {
for _, subpool := range p.subpools { for _, subpool := range p.subpools {
subpool.FlushAllTransactions() subpool.FlushAllTransactions()