GetInt64()
, but fiddling in the consensus code is probably not worth it.
script: remove unused bitwise CScriptNum
operators
#27096
pull
theStack
wants to merge
1
commits into
bitcoin:master
from
theStack:202202-remove_unused_bitwise_ops_in_cscriptnum
changing
2
files
+0 −18
-
theStack commented at 10:53 am on February 14, 2023: contributorThese overloaded operators were introduced almost seven years ago in the implementation of OP_CHECKSEQUENCEVERIFY (BIP112, PR #7524, commit 53e53a33c939949665f60d5eeb82abbb21f97128), but have never been used since outside of fuzzing. One could argue to keep those around solely for consistency reasons, but I think its preferable to get rid of methods that are likely never used. Even the so-far only use of the & operator (checking the OP_CSV argument for the SEQUENCE_LOCKTIME_DISABLE_FLAG), could be removed by simply doing the check on the returned
-
DrahtBot commented at 10:53 am on February 14, 2023: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviews
See the guideline for information on the review process.
Type Reviewers ACK w0xlt If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
-
DrahtBot added the label Consensus on Feb 14, 2023
-
script: remove unused bitwise `CScriptNum` operators
These overloaded operators were introduced almost seven years ago in the implementation of OP_CHECKSEQUENCEVERIFY (BIP112, PR #7524, commit 53e53a33c939949665f60d5eeb82abbb21f97128), but never used since outside of fuzzing.
-
theStack force-pushed on Feb 14, 2023
-
w0xlt approved
-
w0xlt commented at 7:01 pm on February 14, 2023: contributor
-
fanquake requested review from instagibbs on Mar 16, 2023
-
achow101 requested review from maflcko on Apr 25, 2023
-
maflcko commented at 2:17 pm on April 26, 2023: memberIdk, this is probably too hard to review to be worth it. You are removing an overload, so reviewers need to check how this interacts with overload resolution. Maybe just close and reopen/mention it the next time the code is touched an reviewers are primed on it?
-
theStack commented at 8:57 am on April 29, 2023: contributor
Idk, this is probably too hard to review to be worth it. You are removing an overload, so reviewers need to check how this interacts with overload resolution. Maybe just close and reopen/mention it the next time the code is touched an reviewers are primed on it?
Agree that reviewing this is more cumbersome than it should be (this is just another example of how overloading leads to obfuscation and makes maintaining code harder). Closing for now.
-
theStack closed this on Apr 29, 2023
-
theStack deleted the branch on Apr 29, 2023
-
bitcoin locked this on Apr 28, 2024
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-11-21 09: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-11-21 09: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