Skip to content

Commit

Permalink
Fix gas station memory leak (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliqun authored Dec 12, 2024
1 parent eae7b15 commit 2b9f807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/handler/gasstation.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func (w *PriorityFeeWindow) Remove(blockHashes ...string) {
for i := range blockHashes {
if e, ok := w.hashToFee[blockHashes[i]]; ok {
w.feeChain.Remove(e)
delete(w.hashToFee, blockHashes[i])
}
}
}
Expand Down

0 comments on commit 2b9f807

Please sign in to comment.