core/txpool: remove unnecessary reset

This commit is contained in:
cuiweixie 2026-01-06 23:12:50 +08:00
parent eaaa5b716d
commit 4fe8e76fca

View file

@ -47,7 +47,6 @@ func (h *nonceHeap) Pop() interface{} {
old := *h
n := len(old)
x := old[n-1]
old[n-1] = 0
*h = old[0 : n-1]
return x
}