Skip to content

fix(net): remove redundant remove of evicted hash in fetcher#19083

Merged
mattsse merged 1 commit intoparadigmxyz:mainfrom
MozirDmitriy:fix/tx-fetcher-remove-redundant-evicted-remove
Oct 16, 2025
Merged

fix(net): remove redundant remove of evicted hash in fetcher#19083
mattsse merged 1 commit intoparadigmxyz:mainfrom
MozirDmitriy:fix/tx-fetcher-remove-redundant-evicted-remove

Conversation

@MozirDmitriy
Copy link
Contributor

Remove a redundant call to remove an already-evicted key from hashes_pending_fetch after insert_and_get_evicted. The LruCache::insert_and_get_evicted API guarantees the evicted entry is already removed from that cache, so calling remove again is a no-op. This avoids an unnecessary operation without changing behavior.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good find

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Oct 16, 2025
@mattsse mattsse added this pull request to the merge queue Oct 16, 2025
@mattsse mattsse added C-perf A change motivated by improving speed, memory usage or disk footprint A-tx-pool Related to the transaction mempool labels Oct 16, 2025
Merged via the queue into paradigmxyz:main with commit 8788782 Oct 16, 2025
40 of 41 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tx-pool Related to the transaction mempool C-perf A change motivated by improving speed, memory usage or disk footprint

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants