Skip to content

Commit c93ed01

Browse files
committed
feat(bitcoind_rpc): introduce bitcoind_rpc chain-src crate
Also introduce `bitcoind_rpc` cli example. Add tests: * `test_sync_local_chain` ensures that `Emitter::emit_block` emits blocks in order, even after reorg. * `test_into_tx_graph` ensures that `into_tx_graph` behaves appropriately for both mempool and block updates. It should also filter txs and map anchors correctly.
1 parent d747a63 commit c93ed01

File tree

6 files changed

+1148
-0
lines changed

6 files changed

+1148
-0
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ members = [
55
"crates/file_store",
66
"crates/electrum",
77
"crates/esplora",
8+
"crates/bitcoind_rpc",
89
"example-crates/example_cli",
910
"example-crates/example_electrum",
11+
"example-crates/example_rpc",
1012
"example-crates/wallet_electrum",
1113
"example-crates/wallet_esplora_blocking",
1214
"example-crates/wallet_esplora_async",

crates/bitcoind_rpc/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "bdk_bitcoind_rpc"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
bdk_chain = { path = "../chain", version = "0.5.0", features = ["serde", "miniscript"] }
10+
bitcoincore-rpc = { version = "0.17.0" }
11+
12+
[dev-dependencies]
13+
bitcoind = { version = "0.32.0", features = ["25_0"] }
14+
anyhow = { version = "1" }

0 commit comments

Comments
 (0)