diff options
| author | Pieter Wuille <[email protected]> | 2012-11-24 14:26:51 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-11-25 11:50:35 +0100 |
| commit | 231b399952fd620ee0f72b1947024dba9651630d (patch) | |
| tree | ae96634672657bf13e0263ffea9a3f943e39d4aa /src/test/util_tests.cpp | |
| parent | Merge pull request #1980 from sipa/noreorgsame (diff) | |
| download | discoin-231b399952fd620ee0f72b1947024dba9651630d.tar.xz discoin-231b399952fd620ee0f72b1947024dba9651630d.zip | |
Bugfix: remove conflicting transactions from memory pool
When a transaction A is in the memory pool, while a transaction B
(which shares an input with A) gets accepted into a block, A was
kept forever in the memory pool.
This commit adds a CTxMemPool::removeConflicts method, which
removes transactions that conflict with a given transaction, and
all their children.
This results in less transactions in the memory pool, and faster
construction of new blocks.
Diffstat (limited to 'src/test/util_tests.cpp')
0 files changed, 0 insertions, 0 deletions