deps(bdk_testenv)!: bump electrsd to 0.36.1#1826
deps(bdk_testenv)!: bump electrsd to 0.36.1#1826oleonardolima merged 6 commits intobitcoindevkit:masterfrom
electrsd to 0.36.1#1826Conversation
|
It looks like I'll need to open a PR on corepc-client to add I'll do the same in |
af3988d to
b4d655a
Compare
ef27736 to
f52f04d
Compare
|
@oleonardolima I noticed that the |
Yes, it was added a few releases after I started this PR, but IIRC some other methods were missing too. I'll check that again. |
Seems to be lacking good support for |
|
Once #1988 lands, we won't be relying on |
f52f04d to
e8fc019
Compare
It appears that other methods are missing in the corepc-client at electrsd |
2ab640d to
366c9d9
Compare
As of the latest v0.35 release, it appears that all the necessary methods are implemented in It requires a more significant refactor and changes for the |
|
Replaying a comment from discord
|
|
We may be able to unblock this by having a way to create a new RPC client using the node credentials of a |
Cool, I'll take a look at your PR this morning. |
366c9d9 to
a2784f5
Compare
The old
[dependencies]
bitcoin = { version = "0.32.8", default-features = false }
[features]
std = ["bdk_chain/std", "bitcoin/rand-std"] |
530f4d5 to
cfefe9f
Compare
Yes, the old |
4213090 to
82977cf
Compare
ValuedMammal
left a comment
There was a problem hiding this comment.
I left a few non-blocking comments and also added 2 commits in oleonardolima#4. Let me know what you think.
| let base_url = format!("http://{}", &env.electrsd.esplora_url.clone().unwrap()); | ||
| let client = Builder::new(base_url.as_str()).build_async()?; | ||
| let initial_height = env.rpc_client().get_block_count()? as u32; | ||
| let initial_height = env.rpc_client().get_block_count()?.into_model().0 as u32; |
There was a problem hiding this comment.
📌 We could have a TestEnv::get_block_count that returns Result<u32>. Not a blocker for this PR though.
There was a problem hiding this comment.
I'll leave this for a follow-up.
There was a problem hiding this comment.
- upgrades the `electrsd` to latest `0.36.1`. - updates the `electrsd` features to use `corepc-node_28_2`, it's the previously named `bitcoind`. - introduce `bitcoin` as a dependency, in order to use the `bitcoind/rand-std` feature, which is now toggled by `bdk_testenv/std`. - remove the MSRV pinned `home` dependency, it's not currently required.
- introduces `ClientExt` trait to `bdk_bitcoind_rpc` common tests module. - update all `bdk_bitcoind_rpc` tests to build the `Emitter` using the `ClientExt` trait, which allows it to use the old `bitcoincore-rpc::RpcApi` with the corepc-node background.
82977cf to
ea1c6d5
Compare
- updates tests that relies on `bdk_testenv` to it's new `corepc-node` APIs.
ea1c6d5 to
d148921
Compare
Feature-gate TestEnv methods `mine_empty_blocks`, `reorg_empty_blocks` behind `std` feature, as they depend on `rand` which is only available when `std` feature is enabled.
d148921 to
303cc70
Compare
Thanks, those looked good, I cherry-picked the commits. |
electrsd to 0.36.1electrsd to 0.36.1
partially addresses #1949
Description
Upgrades the
electrsdversion from0.28.0to0.36.1, migrating from oldbitcoindtocorepc-nodeand using thecorepc-node_28_2feature.Updates the
bitcoindclient type forTestEnv, and its internal methods. Also, updates: bdk_bitcoind_rpc, bdk_esplora, bdk_electrum usage ofbdk_testenvandTestEnv.Notes to the reviewers
As we are upgrading to the latest
electrsd, we can drop for now the pinning forhomein the MSRV step.Changelog notice
Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features: