-
Notifications
You must be signed in to change notification settings - Fork 363
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] add tests to verify support for sending to bech32m address #402
[test] add tests to verify support for sending to bech32m address #402
Conversation
Ideally, I think it's a test to be added (also) to the |
Looks like bech32m addresses are not supported yet in bitcoin = { git = "https://github.com/rust-bitcoin/rust-bitcoin.git", branch = "master", features = ["use-serde", "base64"] } Also @RCasatta has a good idea about also updating the |
Thank you for going through the problem. We can develop using the master branch but should we release the Bech32m adoption before In most places, there is a similar error after changing the trait `InnerXKey` is not implemented for `bitcoin::util::bip32` I'm on fixing it! |
You will need to keep this PR in "draft" mode until an official |
The 0.27.0 version of
Give it a try and then we can discuss additional tests (as @RCasatta suggested) and how to make the updates to those other projects (if no one else is already working on it). |
For the time being, I changed the dependencies to point to my git fork with updated The added test case for But it looks like builds and some other test cases are still failing. |
From a quick look, it seems you need to use patch in Cargo.toml for the rust-bitcoin 0.27 dep so that dependencies of dependencies are replaced as well, see https://doc.rust-lang.org/edition-guide/rust-2018/cargo-and-crates-io/replacing-dependencies-with-patch.html. Otherwise, you may end up for something that seems the same Object but they are from different crate versions |
Waiting for the following PRs to get merged: |
I created a couple more PRs that also need to be merged to support this PR:
|
src/testutils/blockchain_tests.rs
Outdated
test_client.bitcoind.client | ||
.import_descriptors( | ||
vec![ | ||
ImportDescriptorRequest::new(wallet_descriptor, false), | ||
ImportDescriptorRequest::new(change_descriptor, false), | ||
] | ||
).unwrap(); |
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.
Updated this section to match the newer prototype of import_descriptors
in rust-bitcoincore-rpc
Track via #63 |
This needs to be reworked a little to use raw rpc calls to create our test Moving to '0.15.0' feature freeze so we have more time to work on it. |
I got the blockchain_tests to work without the |
Now works with latest released versions of rust-bitcoincore-rpc and bitcoind. Once these crates are updated to support creating descriptor wallets and add importdescriptors and bech32m support this test will need to be updated.
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 afa1ab4
FYI, here is an explanation from stackexchange that we followed for creating a P2TR wallet in |
Awesome, thanks for fixing this PR. Calling the RPC commands, for now, seems to work perfectly and tests run - which is fantastic and ACK afa1ab4 🎉 |
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 afa1ab4.
below are few minor question and suggestions.
Description
This PR is in reference to #396
It adds some tests to confirm sending transactions to Bech32m addresses, introduced in BIP350
Note: This change requires
bitcoin-core
v22.0
to be incorporated into bitcoind.Checklists
cargo fmt
andcargo clippy
before committingNew Features:
rust-bitcoin