mapDeltas isn’t always cleaned up. #4818

issue morcos openend this issue on September 2, 2014
  1. morcos commented at 2:51 pm on September 2, 2014: member
    mapDeltas maintains a map of transaction hashes to pairs of prioritization deltas. As transactions are removed from the mempool, mapDeltas needs to also have these transactions removed. ClearPrioritization is called in CTxMemPool::removeForBlock to accomplish this, but there are other ways that transactions are removed from the mempool. CTxMemPool::removeConflicts and DisconnectTip in main.cpp both call CTxMemPool::remove which is where transactions are erased from mapTx. Perhaps if ClearPrioritization were moved to CTxMemPool::remove that would be sufficient, but it might be better to store the deltas in the CTxMemPoolEntry’s themselves so we don’t have to worry about keeping anything in sync. This would have the downside of storing this extra information for all transactions and not just the few that actually have prioritization deltas. @luke-jr , maybe you want to have a look?
  2. morcos referenced this in commit 505e1650d4 on Nov 4, 2014
  3. laanwj added the label Bug on Dec 5, 2014
  4. laanwj added the label Priority Medium on Dec 5, 2014
  5. laanwj commented at 11:41 am on December 5, 2014: member
    Can you have a look at this @luke-jr?
  6. laanwj closed this on Oct 27, 2015

  7. MarcoFalke locked this on Sep 8, 2021


morcos laanwj

Labels
Bug


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: 2024-12-04 18:12 UTC

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