-
Notifications
You must be signed in to change notification settings - Fork 9
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
Upgrade bdk to 0.20.0 #8
Conversation
With the following changes, most tests pass:
but the following still fails. I didn't investigate so far.
|
The last error means you have a timelock in your script and in order to spend correctly from it you need to set the nLockTime to I can change it so that I don't force bdk to use zero, just tell the library to use zero for anti fee sniping (essentially disabling it). |
e72af02
to
975f983
Compare
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.
tACK 975f983, modulo the cargo.toml update..
I verified the test passes with bdk20.0..
I wouldn't worry about the locktime setup much in bdk-reserves as they don't represent real transactions. But would good to get it to bdk 20 along with bdk-cli..
bitcoinconsensus = "0.19.0-3" | ||
log = "^0.4" | ||
|
||
[dev-dependencies] | ||
rstest = "^0.11" | ||
bdk-testutils = "^0.4" | ||
bdk = { version = "0.19", default-features = true } |
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.
I think this line needs to stay.. it uses electrum while running integration tests..
975f983
to
d0d17a3
Compare
Thanks for the work, and sorry for the delay. |
The only notable change in this release is that by default bdk tries to prevent fee-sniping attacks by setting the nlocktime to the current height, so it's now necessary to set it at zero explicitly to get deterministic proof of reserves.
On top of this, the new default behavior is to remove partial signatures after finalizing a tx, which should shrink down the size of proofs quite a bit as you can see in the test updated here: bitcoindevkit/bdk-cli#108
This is a draft for now while we wait for the release, there's a one-week window to report bugs so if you notice anything wrong here let us know.