Skip to content

Commit cf12139

Browse files
committed
refactor(core-rpc):Update to latest client changes
1 parent 2c789bb commit cf12139

2 files changed

Lines changed: 4 additions & 24 deletions

File tree

crates/bitcoind_rpc/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ workspace = true
1717

1818
[dependencies]
1919
bitcoin = { version = "0.32.0", default-features = false }
20-
bdk-bitcoind-client ={ git = "https://github.com/bitcoindevkit/bdk-bitcoind-client", rev = "06526db5c25047b61d29f81b25cfee7bd0f3abc8"}
20+
bdk_bitcoind_client ={ git = "https://github.com/bitcoindevkit/bdk-bitcoind-client", branch = "master"}
2121
bdk_core = { path = "../core", version = "0.6.1", default-features = false }
2222

2323
[dev-dependencies]
@@ -29,7 +29,9 @@ bdk_chain = { path = "../chain" }
2929
default = ["std", "bitcoind_28_0"]
3030
std = ["bitcoin/std", "bdk_core/std"]
3131
serde = ["bitcoin/serde", "bdk_core/serde"]
32-
bitcoind_28_0 =["bdk-bitcoind-client/28_0"]
32+
bitcoind_28_0 =["bdk_bitcoind_client/28_0"]
33+
bitcoind_29_0 = ["bdk_bitcoind_client/29_0"]
34+
bitcoind_30_0 = ["bdk_bitcoind_client/30_0"]
3335

3436
[[example]]
3537
name = "filter_iter"

crates/bitcoind_rpc/src/lib.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -366,28 +366,6 @@ fn poll(
366366
}
367367
}
368368

369-
/// Extends [`bdk_bitcoind_client::Error`].
370-
pub trait BitcoindRpcErrorExt {
371-
/// Returns whether the error is a "not found" error.
372-
///
373-
/// This is useful since [`Emitter`] emits [`Result<_, bdk_bitcoind_client::Error>`]s as
374-
/// [`Iterator::Item`].
375-
fn is_not_found_error(&self) -> bool;
376-
}
377-
378-
impl BitcoindRpcErrorExt for bdk_bitcoind_client::Error {
379-
fn is_not_found_error(&self) -> bool {
380-
if let bdk_bitcoind_client::Error::JsonRpc(bdk_bitcoind_client::jsonrpc::Error::Rpc(
381-
rpc_err,
382-
)) = self
383-
{
384-
rpc_err.code == -5
385-
} else {
386-
false
387-
}
388-
}
389-
}
390-
391369
#[cfg(test)]
392370
#[cfg_attr(coverage_nightly, coverage(off))]
393371
mod test {

0 commit comments

Comments
 (0)