Limit txn cache growth #6868

pull TheBlueMatt wants to merge 3 commits into bitcoin:master from TheBlueMatt:limitucache changing 5 files +61 −12
  1. TheBlueMatt commented at 1:11 AM on October 22, 2015: member

    We only otherwise flush the txn cache when we connect a block. This way, we limit it after each tx is added, like we do mempool.

  2. Add method to remove a tx from CCoinsViewCache if it is unchanged ee4f7f5e04
  3. Get the set of now-uncacheable-txn from CTxMemPool::TrimToSize a88ef71523
  4. Limit mempool+txn cache size at the same time. df4740ca4a
  5. TheBlueMatt commented at 1:16 AM on October 22, 2015: member

    Actually, yea, there are some trivial attacks allowing you to make someone's mempool small with this.

  6. TheBlueMatt closed this on Oct 22, 2015

  7. TheBlueMatt commented at 1:16 AM on October 22, 2015: member

    Still, need something like it

  8. DrahtBot locked this on Sep 8, 2021
Contributors

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-04-24 15:15 UTC

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