]> Untitled Git - bdk/commit
[bdk_chain_redesign] Change `insert_relevant_txs` method
author志宇 <hello@evanlinjin.me>
Sat, 22 Apr 2023 16:12:41 +0000 (00:12 +0800)
committer志宇 <hello@evanlinjin.me>
Sat, 22 Apr 2023 16:21:31 +0000 (00:21 +0800)
commit1b152647c557d2ff492cd241999c5320f7c4f6c5
treef6aecf731c9b5f464cfdf1cfa00d3a0b38c1bb1c
parentecc74ce4cd1ab0c51c2e9bcaa4f7d53390dd4d9b
[bdk_chain_redesign] Change `insert_relevant_txs` method

Instead of forcing all transactions inserted to use the same anchors, we
change the API to have unique anchors per transaction.

This allows for more flexibility in general. For example, use `Anchor`
implementations that contain the position in a block of a transaction.
crates/chain/src/indexed_tx_graph.rs
crates/chain/tests/test_indexed_tx_graph.rs