Fix flakey behavior in simulated backend Rollback
This commit is contained in:
parent
301a868d28
commit
7cbf934488
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue