Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
Idempotent (*PendingPool) Remove (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed Jul 19, 2022
1 parent 801970a commit af5355e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions txpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,7 @@ func (p *PendingPool) Len() int { return len(p.best.ms) }
func (p *PendingPool) Remove(i *metaTx) {
heap.Remove(p.worst, i.worstIndex)
p.best.UnsafeRemove(i)
i.currentSubPool = 0
}

func (p *PendingPool) Add(i *metaTx) {
Expand Down

0 comments on commit af5355e

Please sign in to comment.