Fix flakey behavior in simulated backend Rollback

This commit is contained in:
Pierre Rousset 2025-02-21 11:28:11 +09:00
parent 301a868d28
commit 7cbf934488
1 changed files with 1 additions and 0 deletions

View File

@ -486,6 +486,7 @@ func (p *TxPool) Sync() error {
// Clear removes all tracked txs from the subpools.
func (p *TxPool) Clear() {
p.Sync()
for _, subpool := range p.subpools {
subpool.Clear()
}