]> Untitled Git - bdk/commitdiff
ref(chain): Rename direct_conflicts_of_tx to...
authorDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 10 Oct 2023 14:30:48 +0000 (16:30 +0200)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Tue, 10 Oct 2023 14:44:51 +0000 (16:44 +0200)
...direct_conflitcs

Fixes #1138

crates/chain/src/tx_graph.rs

index 698af76c4af55d886f767e001da75d7db178b169..1f7bcdb1225fe0ab8ae56721b60793357653f031 100644 (file)
@@ -373,7 +373,7 @@ impl<A> TxGraph<A> {
     where
         F: FnMut(usize, Txid) -> Option<O> + '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<A> TxGraph<A> {
     /// 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<Item = (usize, Txid)> + '_ {