Remove unused mempool index #12127
pull sdaftuar wants to merge 1 commits into bitcoin:master from sdaftuar:2018-01-remove-unused-index changing 3 files +2 −39-
sdaftuar commented at 1:21 am on January 9, 2018: memberWe haven’t used the “mining_score” index since 0.12, so remove it.
-
fanquake added the label Mempool on Jan 9, 2018
-
jonasschnelli assigned luke-jr on Jan 9, 2018
-
sipa commented at 9:11 am on January 9, 2018: memberutACK
-
promag commented at 10:29 am on January 9, 2018: member
-
Remove unused mempool index 8e617e3708
-
sdaftuar force-pushed on Jan 9, 2018
-
promag commented at 2:14 pm on January 9, 2018: memberutACK 8e617e3.
-
morcos commented at 2:23 pm on January 9, 2018: member
concept ACK
Note: This score was useful for quick approximations for fee estimation and to observe how closely miner policy is matching expectations (as well as possibly coinsviewcache warming). However none of this has made it into master in a couple years and the goals are probably equally accomplishable by using ancestor_score sorting and skipping entries with ancestors.
-
TheBlueMatt commented at 0:42 am on January 10, 2018: memberCan we kill CTxMemPool::GetSortedDepthAndScore() and DepthAndScoreComparator, too? I dont see why queryHashes (used to flush fee estimator - this should probably loop over mapTx or something to avoid the needless copy, and getrawmempool output) and infoAll (::MEMPOOL responses and mempool disk-dumping) should be sorted.
-
sdaftuar commented at 1:46 pm on January 10, 2018: member
@TheBlueMatt I didn’t look at the fee estimator usage at all, but we use depth-and-score comparisons for both responding to MEMPOOL requests and for regular transaction relay, to avoid relaying child transactions before parents, which I think is essential behavior. The sort-by-feerate is imo desirable , if not essential. I don’t think we should get rid of either behavior.
However I think we can get rid of
CompareTxMemPoolEntryByScore
after #12118, and replace its only remaining uses with the ancestor feerate comparison (that’s the only remaining change I had left at the moment), once that’s fixed to be the min(feerate, feerate_with_ancestors). I was going to PR that separately after these were merged.If reviewers would rather see all these changes in one PR, I can do that too (I thought smaller would be better here).
-
ryanofsky commented at 9:57 pm on January 10, 2018: memberutACK 8e617e3708e0e4d42d586531450a21ae70aecf63. Seems fine to make the other changes separately.
-
TheBlueMatt commented at 5:53 pm on January 11, 2018: memberutACK 8e617e3708e0e4d42d586531450a21ae70aecf63, though I’d prefer if the sort in queryHashes were killed as its uneccessary for its users, and then remove the local prioritization’s effect on scoring and maybe rename it or give the score sorter more clear documentation for what its (now) used for.
-
laanwj commented at 8:57 am on January 15, 2018: member
utACK 8e617e3
Seems fine to make the other changes separately.
Agree - this is an easy to review, self-contained change, the rest can be done later, no reason to extend the scope.
-
laanwj merged this on Jan 15, 2018
-
laanwj closed this on Jan 15, 2018
-
laanwj referenced this in commit 9501dc27b3 on Jan 15, 2018
-
laanwj referenced this in commit 67447ba060 on Feb 8, 2018
-
PastaPastaPasta referenced this in commit c614535082 on Jan 17, 2020
-
PastaPastaPasta referenced this in commit d341f91448 on Jan 22, 2020
-
PastaPastaPasta referenced this in commit 0236aea13b on Jan 22, 2020
-
PastaPastaPasta referenced this in commit 520afe2465 on Jan 29, 2020
-
PastaPastaPasta referenced this in commit 61edcd80de on Jan 29, 2020
-
PastaPastaPasta referenced this in commit bcfacb4cc9 on Jan 29, 2020
-
PastaPastaPasta referenced this in commit e158f1ad5b on Jan 31, 2020
-
PastaPastaPasta referenced this in commit 361cd424b7 on Jul 17, 2020
-
PastaPastaPasta referenced this in commit c0a094ebe3 on Jul 17, 2020
-
PastaPastaPasta referenced this in commit ed5f046a99 on Jul 17, 2020
-
ckti referenced this in commit 075703e29a on Mar 28, 2021
-
gades referenced this in commit f9b575e730 on Jun 24, 2021
-
DrahtBot locked this on Sep 8, 2021
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-22 15:12 UTC
More mirrored repositories can be found on mirror.b10c.me