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
Test the bitcoin v0.32.0-rc1
release
#1400
base: master
Are you sure you want to change the base?
Conversation
Upgrade: - bitcoin to v0.31.0 - miniscript to v11.0.0 Note: The bitcoin upgrade includes improvements to the `Transaction::weight()` function, it appears those guys did good, we no longer need to add the 2 additional weight units "just in case".
crates/bdk/src/descriptor/policy.rs
Outdated
sorted: bool, | ||
secp: &SecpCtx, | ||
) -> Result<Option<Policy>, PolicyError> { | ||
if threshold == 0 { | ||
if threshold.k() == 0 { |
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.
This condition is impossible with the new threshold type.
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.
Woops, 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.
Removed - two instances.
Test the latest bitcoin release candidate. Includes bumping the version numbers so we can use this branch to test crates further up the stack.
@tcharding Are you planning on continuing working on this PR towards merge ? I'm asking just to know if I should start working on another one (on top of this one) on behalf of #1422 :) |
I"d love it if you took over. Feel free to use any of my work, change it, or drop it as you see fit. No attribution needed. FTR we need to get an updated version of |
Great, I'll do it then. Thanks, I'll follow the discussions on the PRs (rust-bitcoin/rust-bitcoincore-rpc#345 rust-bitcoin/rust-miniscript#679 repositories closely then. |
Hey @oleonardolima you should be good to go after this one goes in: rust-bitcoin/rust-miniscript#688 |
Please excuse the noise if this is not of interest to you guys right now. No action required from the
bdk
team - this is just informational and so therust-bitcoin
team can see that bitcoin rc1 release is ok.Test the latest bitcoin release candidate. Includes an unreleased patched version of
rust-miniscript
(master
branch + depend on bitcoin rc release).Notes:
miniscript::Threshold
usage took me down a dark path for a while :)expect
that require more invasive error handling improvementsweight.to_wu() as usize
instead of using the newWeight
type more thoroughlynetwork.into()
liberally instead of using the newNetworkKind
more thoroughlySequence
/RelLockTime
stuff is a bit rough tooBut I believe this proves the rc1 release is pretty good as it is.
cargo test --color=always --workspace --all-features --all-targets
passes all tests on my machine.