Followups from #28970:
opportunistic 1p1c followups #30012
pull glozow wants to merge 6 commits into bitcoin:master from glozow:2024-05-1p1c-followups changing 7 files +27 −43-
glozow commented at 12:43 pm on May 1, 2024: member
-
[refactor] make MempoolAcceptResult::m_replaced_transactions non-optional 8496f69e1c
-
[txpackages] use std::lexicographical_compare instead of sorting hex strings
No behavior change, but getting the hex string is more expensive than necessary.
-
[doc] remove redundant PackageToValidate comment c2ada05307
-
[refactor] have ProcessPackageResult take a PackageToValidate 2b482dc1f3
-
glozow added the label Refactoring on May 1, 2024
-
DrahtBot commented at 12:43 pm on May 1, 2024: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Code Coverage
For detailed information about the code coverage, see the test coverage report.
Reviews
See the guideline for information on the review process.
Type Reviewers ACK instagibbs If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #29641 (scripted-diff: Use LogInfo/LogDebug over LogPrintf/LogPrint by maflcko)
- #28984 (Cluster size 2 package rbf by instagibbs)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
Process every MempoolAcceptResult regardless of PackageValidationResult 6119f76ef7
-
instagibbs approved
-
instagibbs commented at 7:31 pm on May 1, 2024: memberACK 6119f76ef72c1adc55c1a384c20f8ba9e1a01206
-
fanquake commented at 4:09 am on May 2, 2024: member
Can this also address:
0txorphanage.cpp:281:21: error: loop variable 'child_iter' creates a copy from type '__gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair<const transaction_identifier<false>, TxOrphanage::OrphanTx>>, std::map<transaction_identifier<false>, TxOrphanage::OrphanTx>> const' [-Werror,-Wrange-loop-construct] 1 281 | for (const auto child_iter : iters) { 2 | ^ 3txorphanage.cpp:281:10: note: use reference type '__gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair<const transaction_identifier<false>, TxOrphanage::OrphanTx>>, std::map<transaction_identifier<false>, TxOrphanage::OrphanTx>> const &' to prevent copying 4 281 | for (const auto child_iter : iters) { 5 | ^~~~~~~~~~~~~~~~~~~~~~~ 6 | & 7txorphanage.cpp:313:21: error: loop variable 'child_iter' creates a copy from type '__gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair<const transaction_identifier<false>, TxOrphanage::OrphanTx>>, std::map<transaction_identifier<false>, TxOrphanage::OrphanTx>> const' [-Werror,-Wrange-loop-construct] 8 313 | for (const auto child_iter : iters) { 9 | ^ 10txorphanage.cpp:313:10: note: use reference type '__gnu_debug::_Safe_iterator<std::_Rb_tree_iterator<std::pair<const transaction_identifier<false>, TxOrphanage::OrphanTx>>, std::map<transaction_identifier<false>, TxOrphanage::OrphanTx>> const &' to prevent copying 11 313 | for (const auto child_iter : iters) { 12 | ^~~~~~~~~~~~~~~~~~~~~~~ 13 | &
-
[refactor] use reference in for loop through iters 7f6fb73c82
-
glozow commented at 10:27 am on May 2, 2024: member
Can this also address:
Added. I made a copy instead of reference because it’s a pointer.
-
instagibbs commented at 1:28 pm on May 2, 2024: member
reACK https://github.com/bitcoin/bitcoin/pull/30012/commits/7f6fb73c82fdff2afe5edefcc335ba6707d5627d
just the non-pointer copying added
-
fanquake merged this on May 3, 2024
-
fanquake closed this on May 3, 2024
-
glozow deleted the branch on May 9, 2024
glozow
DrahtBot
instagibbs
fanquake
Labels
Refactoring
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-11-23 09:12 UTC
More mirrored repositories can be found on mirror.b10c.me