]> Untitled Git - bdk/commit
feat(chain)!: Add ability to modify canonicalization algorithm
author志宇 <hello@evanlinjin.me>
Thu, 23 Jan 2025 04:16:46 +0000 (15:16 +1100)
committer志宇 <hello@evanlinjin.me>
Thu, 1 May 2025 05:24:55 +0000 (15:24 +1000)
commit46af2a5ca4182a0b654c42e672f2a58bd39b5b96
tree5dfaae0e1566861e3b40294db7b25f61d59e5a2e
parent58fcf3287be09d28a34243cf7aa02b8de1012148
feat(chain)!: Add ability to modify canonicalization algorithm

Introduce `CanonicalizationParams` which is passed in to
`CanonicalIter::new`.

`CanonicalizationParams::assume_canonical` is the only field right now.
This contains a list of txids that we assume to be canonical,
superceding any other canonicalization rules.
14 files changed:
crates/bitcoind_rpc/examples/filter_iter.rs
crates/bitcoind_rpc/tests/test_emitter.rs
crates/chain/benches/canonicalization.rs
crates/chain/src/canonical_iter.rs
crates/chain/src/tx_graph.rs
crates/chain/tests/common/tx_template.rs
crates/chain/tests/test_indexed_tx_graph.rs
crates/chain/tests/test_tx_graph.rs
crates/chain/tests/test_tx_graph_conflicts.rs
crates/electrum/tests/test_electrum.rs
examples/example_bitcoind_rpc_polling/src/main.rs
examples/example_cli/src/lib.rs
examples/example_electrum/src/main.rs
examples/example_esplora/src/main.rs