-
Notifications
You must be signed in to change notification settings - Fork 735
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
Default Display of ChildNumber
changed with 0.26.1
#608
Comments
Even if I a prefer the |
Considering that the descriptor checksum is computed on the string I wonder if this breaks checksum compatibility with Core in rust-miniscript |
Yup,
|
Just for the history record, this was discussed and everyone in discussion agreed that this was acceptable for minor version change: #567 (comment) If it breaks Bitcoin Core checksum compatibility this is still an issue I believe and should be fixed. |
Damn it, that shows again: no matter how clever we feel about our reasons for breaking semver, we just shouldn't 😬 |
I'd argue that this kind of breaking change is even worse that straight up breaking the API in a patch release: at least API changes are caught at compile time, this one just breaks the code silently |
Fixes rust-bitcoin#608. In rust-bitcoin#567 the Display impl for ChildNumber was consciously changed, assuming the semver break would not affect any correctly implemented downstream projects. We were wrong.
Yeah :( it breaks my heart to revert this but if we break checksums at runtime then we definitley need to fix it. Sorry guys. |
Fixes rust-bitcoin#608. In rust-bitcoin#567 the Display impl for ChildNumber was consciously changed, assuming the semver break would not affect any correctly implemented downstream projects. We were wrong.
Fixes rust-bitcoin#608. In rust-bitcoin#567 the Display impl for ChildNumber was consciously changed, assuming the semver break would not affect any correctly implemented downstream projects. We were wrong.
Fixes rust-bitcoin#608. In rust-bitcoin#567 the Display impl for ChildNumber was consciously changed, assuming the semver break would not affect any correctly implemented downstream projects. We were wrong.
…rovements 5018673 Remove magic number (Tobin C. Harding) 535cd17 Improve docs in the checksum module (Tobin C. Harding) fec700a Add bip 380 checksum test vectors (Tobin C. Harding) 73f4892 Add output descriptor bip referenece (Tobin C. Harding) Pull request description: The first 4 patches from rust-bitcoin#608, no changes. Clean up and add some test vector unit tests. ACKs for top commit: apoelstra: ACK 5018673 Tree-SHA512: f50f64bf9a1fc28eebca809379e02580cab96e7e41228aab6045441eb71702bef1b1979e497a6dcb1e1bce082965e5c93e78dba6e8fbd78c7a0ae2e3c8035660
The default Display fmt of
ChildNumber
was changed in this commit 017cd71 and it's causing test failures in BDK because the descriptors we print have a different format.Originally hardened ChildNumbers were always printed with
'
, but now that's only done when the "alternate" form is explicitly enabled, which means that just printing a path with the standard{}
results in a different string compared to the previous releases.The text was updated successfully, but these errors were encountered: