From: Daniela Brozzoni Date: Tue, 10 Oct 2023 14:30:48 +0000 (+0200) Subject: ref(chain): Rename direct_conflicts_of_tx to... X-Git-Tag: v1.0.0-alpha.2~1^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/message/static/gitweb.js?a=commitdiff_plain;h=d5c87c49a82c5cd3a4558e61fe9984f0ae8c6cb7;p=bdk ref(chain): Rename direct_conflicts_of_tx to... ...direct_conflitcs Fixes #1138 --- diff --git a/crates/chain/src/tx_graph.rs b/crates/chain/src/tx_graph.rs index 698af76c..1f7bcdb1 100644 --- a/crates/chain/src/tx_graph.rs +++ b/crates/chain/src/tx_graph.rs @@ -373,7 +373,7 @@ impl TxGraph { where F: FnMut(usize, Txid) -> Option + 'g, { - let txids = self.direct_conflicts_of_tx(tx).map(|(_, txid)| txid); + let txids = self.direct_conflitcs(tx).map(|(_, txid)| txid); TxDescendants::from_multiple_include_root(self, txids, walk_map) } @@ -384,7 +384,7 @@ impl TxGraph { /// Note that this only returns directly conflicting txids and won't include: /// - descendants of conflicting transactions (which are technically also conflicting) /// - transactions conflicting with the given transaction's ancestors - pub fn direct_conflicts_of_tx<'g>( + pub fn direct_conflitcs<'g>( &'g self, tx: &'g Transaction, ) -> impl Iterator + '_ {