forked from Bitcoin-ABC/bitcoin-abc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mempool: Remove BatchUpdater classes, consolidate & clean-up removeFo…
…rBlock Summary --- As discussed in review and raised in issue Bitcoin-ABC#285, the `BatchUpdater` class hierarchy is no longer needed. It was added originally to abstract-out the logic for confirmed txs being removed from the mempool, in order to try out different algorithms. However, we never ended up making use of this abstract interface. During review of the recent mempool changes, it was decided that this interface probably needs to be reverted back to a simple direct method inside `CTxMemPool` (for clarity and maintainability). As such, this MR does just that. Additionally, the unused second parameter `nBlockHeight` to `CTxMemPool::removeForBlock()` was removed, in the interests of code quality. Should we need this parameter again, we can always bring it back. All call-sites were updated to not pass this argument. This closes Bitcoin-ABC#285. Test Plan --- - `ninja all check-all`
- Loading branch information
Showing
11 changed files
with
22 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters