Skip to content

Commit

Permalink
Improvements for bdk_bitcoind_rpc::Emitter
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
evanlinjin committed Aug 1, 2023
1 parent 64573c7 commit b5b2367
Show file tree
Hide file tree
Showing 4 changed files with 706 additions and 235 deletions.
3 changes: 3 additions & 0 deletions crates/bitcoind_rpc/Cargo.toml
Expand Up @@ -9,3 +9,6 @@ edition = "2021"
bdk_chain = { path = "../chain", version = "0.5.0", features = ["serde", "miniscript"] }
bitcoincore-rpc = { version = "0.16" }
anyhow = { version = "1" }

[dev-dependencies]
bitcoind = { version = "^0.29", features = ["23_0"] }

0 comments on commit b5b2367

Please sign in to comment.