]> Untitled Git - bdk/commit
fix(bitcoind_rpc)!: Simplify emitter
author志宇 <hello@evanlinjin.me>
Thu, 3 Jul 2025 23:58:53 +0000 (23:58 +0000)
committer志宇 <hello@evanlinjin.me>
Thu, 10 Jul 2025 02:13:09 +0000 (02:13 +0000)
commit05464ecf850feabd30a13aa4927d8797d06148cf
tree04e2b910e84bbaa761085d7dbe917d1c90624ce4
parent67dfb0b1482f81fe5a888e94c8f54dc5be99e409
fix(bitcoind_rpc)!: Simplify emitter

Instead of having an avoid-reemission logic based on timestamps returned
by bitcoind RPC, we wrap all transactions in `Arc` and always emit the
entire mempool. This makes emission cheap while avoiding the flawed
avoid-reemission logic.
crates/bitcoind_rpc/src/lib.rs
crates/bitcoind_rpc/tests/test_emitter.rs
examples/example_bitcoind_rpc_polling/src/main.rs