Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuhaai committed Jan 5, 2023
1 parent 32ef04e commit 888de0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actpool/actqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 888de0f

Please sign in to comment.