]> Untitled Git - bdk/commit
[bdk_chain_redesign] Various tweaks and fixes
author志宇 <hello@evanlinjin.me>
Fri, 21 Apr 2023 05:29:44 +0000 (13:29 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 21 Apr 2023 05:29:44 +0000 (13:29 +0800)
commitf3e7b67bf1195eadf48a8f26f960b3f39d6134f7
tree78c08e7faa6f882c7b590f2e9668f64c2ecf52f5
parent03c128311a687249238fb109f804cde25ffddad2
[bdk_chain_redesign] Various tweaks and fixes

The `ConfirmationHeight` trait has been removed in favour of a second
method on the `Anchor` trait: `confirmation_height_upper_bound()`.

Methods `try_balance_at()` and `balance_at()` of `IndexedTxGraph` have
been removed as they do not provide additional functionality.

`IndexedTxGraph::insert_relevant_txs` now uses two loops, the first loop
indexes all transactions first. This is done as some indexes require
ancestor transactions to be indexed first and we cannot guarantee that
the input transactions are in topological order.
crates/chain/src/chain_data.rs
crates/chain/src/chain_graph.rs
crates/chain/src/indexed_tx_graph.rs
crates/chain/src/tx_data_traits.rs
crates/chain/src/tx_graph.rs