Refactor: update bdk-bitcoind-rpc to use bdk-bitcoind-client#2119
Refactor: update bdk-bitcoind-rpc to use bdk-bitcoind-client#2119tvpeter wants to merge 3 commits into
Conversation
|
Concept ACK |
cf12139 to
3d9ee45
Compare
- replace bitcoincore-rpc with bdk_bitcoind_client - update usage in lib.rs and bip158.rs modules
- Enable bitcoind-client v28_0 and set as default in bitcoind_rpc - Update example_bitcoind_rpc_polling to use bitcoind-client - Update tests to use bitcoind-client
3d9ee45 to
959484b
Compare
| /// contains the next block's block hash (which we use to fetch the next block), we set | ||
| /// this to `None` whenever there are no more blocks, or the next block is no longer in the | ||
| /// best chain. This gives us an opportunity to re-fetch this result. | ||
| last_block: Option<corepc_types::model::GetBlockHeaderVerbose>, |
There was a problem hiding this comment.
I think the equivalent of GetBlockResult is GetBlockVerboseOne, but this seems to work as well.
There was a problem hiding this comment.
I get this error when running the filter_iter example, don't know if it's something about my OS. I noticed during the transition from bitcoincore_rpc to bdk_bitcoind_client using bitreq. FWIW I don't have the same problem with SimpleHttpTransport because it can create a fresh tcp socket on the fly.
Matched block 205061
Matched block 208441
Error: JSON-RPC error: transport error: bitreq: Can't assign requested address (os error 49)There was a problem hiding this comment.
I have noticed this randomly when running tests. Sometimes it passes, other times it fails.
|
Thanks for this PR. Before I give it a review, can I please get a bit more context to this Discord message? In this message, it claims that Sounds like it should NOT be a public crate at all. Additionally, if the goal is to "support features that we need for BDK", one feature that is missing is the ability to support async IO. The cc. @notmandatory |
- also rebased changes
959484b to
73ea0e1
Compare
|
As a little recap from our discussion yesterday (please correct me if I've missed something), there are two ways to go with this crate:
The advantage I see of option 1 is it avoids any confusion about the purpose of the client and simplifies release/publishing. Option 2 could be useful if other related projects like LDK want to use the same bitcoind rpc client for L1 and L2 but they'd need to be OK with exactly the same features |
Description
This PR replaces
bitcoincore-rpcwithbdk-bitcoind-clientinbdk-bitcoind-rpclibrary and its tests and examples.Depends on bdk-bitcoind-client#5
Notes to the reviewers
Changelog notice
bitcoincore-rpcwithbdk-bitcoind-clientChecklists
All Submissions: