From 888de0f5fc0b22f5378abab184b2ff2de4b08fa9 Mon Sep 17 00:00:00 2001 From: Liuhaai Date: Thu, 5 Jan 2023 13:19:37 -0800 Subject: [PATCH] fix bug --- actpool/actqueue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actpool/actqueue.go b/actpool/actqueue.go index 80bb9562a3..ab117218ca 100644 --- a/actpool/actqueue.go +++ b/actpool/actqueue.go @@ -233,8 +233,8 @@ func (q *actQueue) UpdateAccountState(nonce uint64, balance *big.Int) []action.S // Pop off priority queue and delete corresponding entries from map for q.index.Len() > 0 && (q.index)[0].nonce < q.accountNonce { nonce := heap.Pop(&q.index).(*nonceWithTTL).nonce - delete(q.items, nonce) removed = append(removed, q.items[nonce]) + delete(q.items, nonce) } return removed }