Skip to content

Commit

Permalink
ref(chain): Rename direct_conflicts_of_tx to...
Browse files Browse the repository at this point in the history
...direct_conflitcs

Fixes bitcoindevkit#1138
  • Loading branch information
danielabrozzoni committed Oct 10, 2023
1 parent 009408d commit d5c87c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/chain/src/tx_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)> + '_ {
Expand Down

0 comments on commit d5c87c4

Please sign in to comment.