forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validation: \
MemPoolAccept::PreChecks\
count evictions accurately
Previously when enforcing BIP125 Rule bitcoin#5, the number of actual descendants of a set of conflicts will be counted multiple times in some cases (ie if multiple conflicts share a descendant). This was done to be conservative and avoid doing too much work. However, it seems preferable to be accurate as there is no major cost or performance bottleneck/tradeoff to do this accurately, and the code is actually simplified.
- Loading branch information
Showing
2 changed files
with
16 additions
and
41 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