Skip to content

Commit 7cbf934

Browse files
committed
Fix flakey behavior in simulated backend Rollback
1 parent 301a868 commit 7cbf934

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/txpool/txpool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ func (p *TxPool) Sync() error {
486486

487487
// Clear removes all tracked txs from the subpools.
488488
func (p *TxPool) Clear() {
489+
p.Sync()
489490
for _, subpool := range p.subpools {
490491
subpool.Clear()
491492
}

0 commit comments

Comments
 (0)