Skip to content

Commit e1a9124

Browse files
committed
Improvements for bdk_bitcoind_rpc::Emitter
* Have separate methods for emitting block vs mempool updates. * `into_update` (which has been renamed to `into_tx_graph_update`) can now filter out irrelevant transactions. * Update docs. 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 933bae8 commit e1a9124

File tree

4 files changed

+731
-242
lines changed

4 files changed

+731
-242
lines changed

crates/bitcoind_rpc/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ edition = "2021"
77

88
[dependencies]
99
bdk_chain = { path = "../chain", version = "0.5.0", features = ["serde", "miniscript"] }
10-
bitcoincore-rpc = { version = "0.16" }
10+
bitcoincore-rpc = { version = "0.17.0" }
11+
12+
[dev-dependencies]
13+
bitcoind = { version = "0.32.0", features = ["25_0"] }
1114
anyhow = { version = "1" }

0 commit comments

Comments
 (0)