Encapsulate memory pool inside a new class, CTxMemPool #1095

pull jgarzik wants to merge 4 commits into bitcoin:master from jgarzik:mempool changing 3 files +112 −76
  1. jgarzik commented at 10:33 PM on April 13, 2012: contributor

    As mentioned on IRC, the mempool code always seemed inside-out to me. This set of commits updates main.{h,cpp} code to create a new CTxMemPool class.

    This is essentially just code movement and renaming. No behavior changes should occur [that have not already been submitted separately as independent pull requests].

  2. New class CTxMemPool, encapsulating TX memory pool data members 235507ae48
  3. CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),
    and nPooledTx
    8e45ed66dd
  4. CTxMemPool: encapsulate AcceptToMemoryPool d01903e751
  5. CTxMemPool: add helper methods, to reduce global mempool.mapTx accesses ca4c4c53a8
  6. sipa commented at 11:33 PM on April 15, 2012: member

    ACK

  7. sipa merged this on Apr 17, 2012
  8. sipa closed this on Apr 17, 2012

  9. lateminer referenced this in commit 5c8000fb98 on Jan 22, 2019
  10. lateminer referenced this in commit c6e238ca4d on Dec 25, 2019
  11. dexX7 referenced this in commit 82717d82f1 on Mar 25, 2020
  12. 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-20 00:16 UTC

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