[bdk_chain_redesign] Add apply_additions to IndexedTxGraph

* Get mutable index from `IndexedChainGraph`.
* Also add `apply_additions` method to `TxIndex` trait.
This commit is contained in:
志宇 committed 2023-03-27 16:02:21 +08:00
1 parent 6cbb18d409
commit d0a2aa83be
4 files changed
+26

No files matched your search

+4
View File
@@ -101,6 +101,10 @@ impl<K: Clone + Ord + Debug + 'static> TxIndex for KeychainTxOutIndex<K> {
self.scan(tx)
}
fn apply_additions(&mut self, additions: Self::Additions) {
self.apply_additions(additions)
}
fn is_tx_relevant(&self, tx: &bitcoin::Transaction) -> bool {
self.is_relevant(tx)
}