]> Untitled Git - bdk/commit
feat(bitcoind_rpc)!: Reduce friction of `Emitter` API.
author志宇 <hello@evanlinjin.me>
Thu, 1 May 2025 00:36:10 +0000 (10:36 +1000)
committerWei Chen <wzc110@gmail.com>
Thu, 1 May 2025 14:48:43 +0000 (14:48 +0000)
commit8513d83a2ef2fe748e9007984187a7f08d256ee6
treeca357c448a7b2bd2887192e06eca631a81d229fc
parent0a02d26835a41556cf0f6899f97fdb42bf4d0f9d
feat(bitcoind_rpc)!: Reduce friction of `Emitter` API.

* Change signature of `Emitter::new` so that `expected_mempool_txids`
  can be more easily constructed from `TxGraph` methods.
* Change generic bounds of `C` within `Emitter<C>` to be `C: DeRef,
  C::Target: RpcApi`. This allows the caller to have `Arc<Client>` as
  `C` and does not force to caller to hold a lifetimed reference.
crates/bitcoind_rpc/src/lib.rs
crates/bitcoind_rpc/tests/test_emitter.rs
examples/example_bitcoind_rpc_polling/src/main.rs