-
Notifications
You must be signed in to change notification settings - Fork 831
Remove old deprecated code #1163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove old deprecated code #1163
Conversation
4a9f81b
to
5f3c8ff
Compare
Draft while I actually do it properly. |
In preparation for adding unit tests to the `sighash` module clean up the import statements. Refactor only, no logic changes.
We have a bunch of unit tests that verify the BIP 143 test vectors. Three of these use the deprecated `SighashComponents` struct. We should implement these tests using the new `SighashCache`. In order to do so we have to move the tests to the `sighash` module so they can get access to the private `segwit_cache()` function, and verify the cache internal state against the test vectors. Re-write the BIP 143 test vector code using `SighashCache` and remove the versions using `SighashComponents`. Done in preparation for removing the deprecated `SighashComponents`.
The `bip143::SigHashCache` is deprecated in favour of `sighash::SighashCache` however we still use it in `bip143` unit tests. Use the new `sighash::SighashCache` in `bip143` unit tests.
This struct was deprecated in v0.24.0, we can safely remove it now.
We have two methods that have been deprecated since 0.26.2, we can safely remove them now.
5f3c8ff
to
dfb8ef9
Compare
AFAIK there's none but anything is good enough IMO. We do unannounced changes too. 🤷♂️ . |
I'll ACK this but in the interest of getting the release out I think we'll wait til after 0.29.0 to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK dfb8ef9
Oh yes, I expected that. I'll add 0.30 milestone and try to remember to add labels/milestones to my PRs. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8000ACK dfb8ef9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK dfb8ef9
I'm not sure what the exact policy we decided on for deprecating is but we have code deprecated since v0.24.0 and v.026.2, both of these seem reasonable safe to remove.
Removal of
SighashCompontents
uncovered the fact that we never moved the BIP 143 test vector code over to the newSighashCache
.sighash::SighashCache
SighashCache
instead ofSigHashCache
SighashComponents
struct deprecated in 0.24.0MerkleBlock
methods deprecated in 0.26.2