refactor: remove duplicate code from BlockAssembler #24364
pull jamesob wants to merge 1 commits into bitcoin:master from jamesob:2022-02-ba-dup-code changing 1 files +2 −6-
jamesob commented at 2:19 am on February 17, 2022: memberFound while reminding myself how transactions are chosen for blocks. Take it or leave it!
-
refactor: remove duplicate code from BlockAssembler 0f40d65321
-
DrahtBot added the label Refactoring on Feb 17, 2022
-
laanwj commented at 4:22 pm on February 23, 2022: memberConcept ACK
-
theStack approved
-
theStack commented at 10:19 am on March 1, 2022: contributorConcept and code-review ACK 0f40d653218789aa176ca2f844e3222d2ad890a3
-
glozow commented at 1:21 pm on March 1, 2022: membercode review ACK 0f40d653218789aa176ca2f844e3222d2ad890a3
-
fanquake added this to the milestone 24.0 on Mar 2, 2022
-
maflcko commented at 4:18 pm on March 8, 2022: memberCan anyone explain why this is correct? Why should GetModifiedFee be equal to GetFee??
-
jamesob commented at 4:24 pm on March 8, 2022: member
Can anyone explain why this is correct? Why should GetModifiedFee be equal to GetFee??
Good point. This is not correct. :)
Probably a comment and/or test should be added.
-
jamesob closed this on Mar 8, 2022
-
glozow commented at 4:26 pm on March 8, 2022: memberAh that’s true, but it’s very weird that they’re not the same. Why does
update_for_parent_inclusion
useGetFee()
and notGetModifiedFee()
to updatenModFeesWithAncestors
? -
maflcko commented at 4:34 pm on March 8, 2022: member
modified fee is already applied recursively, so if you apply it repeatedly it would accumulate?
Edit: This is nonsense
-
glozow commented at 4:40 pm on March 8, 2022: memberWhat do you mean by recursively? Isn’t
nModFeesWithAncestors
the sum of ours + all ancestors’ modified fees? So if you’re updating for parent inclusion, usingparent.GetFee()
instead ofparent.GetModifiedFee()
means you’re still including the prioritisation from your parent, which would be incorrect. -
theStack commented at 5:29 pm on March 8, 2022: contributor
Can anyone explain why this is correct? Why should GetModifiedFee be equal to GetFee??
Oh snap, I obviously totally overlooked this in my review :/
-
maflcko commented at 9:07 am on May 6, 2022: memberThis can be reopened, now that #https://github.com/bitcoin/bitcoin/pull/24538 is merged.
-
maflcko referenced this in commit b2e7811c62 on May 6, 2022
-
sidhujag referenced this in commit c8d2687323 on May 9, 2022
-
fanquake removed this from the milestone 24.0 on Sep 13, 2022
-
glozow commented at 3:10 pm on September 13, 2022: memberConcept ACK to reopen. Agree not necessary for v24.0.
-
jamesob reopened this on Sep 13, 2022
-
DrahtBot commented at 1:01 pm on September 23, 2022: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
No conflicts as of last run.
-
glozow commented at 9:57 am on October 6, 2022: memberACK 0f40d653218789aa176ca2f844e3222d2ad890a3
-
glozow merged this on Oct 6, 2022
-
glozow closed this on Oct 6, 2022
-
sidhujag referenced this in commit 22d943f5ee on Oct 6, 2022
-
Fabcien referenced this in commit ce0b1b9a24 on Jan 6, 2023
-
bitcoin locked this on Oct 6, 2023
github-metadata-mirror
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-23 18:12 UTC
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-23 18:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me