Mempool leak through the eviction policy (#31211) #35703

pull kallal79 wants to merge 1 commits into bitcoin:master from kallal79:fix-mempool-leak-31211 changing 5 files +98 −10
  1. kallal79 commented at 2:08 PM on July 10, 2026: none

    Fixes #31211

    • Added a circular buffer to CConnman (m_recent_tx_providers) that stores the NodeIds of peers providing the last 1000 accepted transactions.
    • Updated net_processing.cpp to call AddRecentTxProvider upon a transaction being accepted to the mempool as VALID.
    • Modified the candidate population in AttemptToEvictConnection to mark peers present in this rolling window via a new m_provided_recent_tx flag.
    • Updated SelectNodeToEvict in src/node/eviction.cpp to remove CompareNodeTXTime. Instead, it randomly shuffles all peers flagged as being in the rolling window and protects up to 4 of them.
  2. Fix mempool leak through the eviction policy (#31211) 16491b40a5
  3. DrahtBot commented at 2:08 PM on July 10, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35703.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. sedited commented at 2:17 PM on July 10, 2026: contributor

    This looks entirely AI generated. According to the AI Policy, the project does allow AI-assisted contributions, given that the author adequately explains and understands them. Since this is not done here, I'm closing this again.

  5. sedited closed this on Jul 10, 2026


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-07-11 18:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me