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.
Limit txn cache growth #6868
pull TheBlueMatt wants to merge 3 commits into bitcoin:master from TheBlueMatt:limitucache changing 5 files +61 −12-
TheBlueMatt commented at 1:11 AM on October 22, 2015: member
-
Add method to remove a tx from CCoinsViewCache if it is unchanged ee4f7f5e04
-
Get the set of now-uncacheable-txn from CTxMemPool::TrimToSize a88ef71523
-
Limit mempool+txn cache size at the same time. df4740ca4a
-
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.
- TheBlueMatt closed this on Oct 22, 2015
-
TheBlueMatt commented at 1:16 AM on October 22, 2015: member
Still, need something like it
- DrahtBot locked this on Sep 8, 2021
Contributors