Skip to content

Commit d5c87c4

Browse files
ref(chain): Rename direct_conflicts_of_tx to...
...direct_conflitcs Fixes #1138
1 parent 009408d commit d5c87c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/chain/src/tx_graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ impl<A> TxGraph<A> {
373373
where
374374
F: FnMut(usize, Txid) -> Option<O> + 'g,
375375
{
376-
let txids = self.direct_conflicts_of_tx(tx).map(|(_, txid)| txid);
376+
let txids = self.direct_conflitcs(tx).map(|(_, txid)| txid);
377377
TxDescendants::from_multiple_include_root(self, txids, walk_map)
378378
}
379379

@@ -384,7 +384,7 @@ impl<A> TxGraph<A> {
384384
/// Note that this only returns directly conflicting txids and won't include:
385385
/// - descendants of conflicting transactions (which are technically also conflicting)
386386
/// - transactions conflicting with the given transaction's ancestors
387-
pub fn direct_conflicts_of_tx<'g>(
387+
pub fn direct_conflitcs<'g>(
388388
&'g self,
389389
tx: &'g Transaction,
390390
) -> impl Iterator<Item = (usize, Txid)> + '_ {

0 commit comments

Comments
 (0)