ref(chain): Rename direct_conflicts_of_tx to...
...direct_conflitcs Fixes #1138
This commit is contained in:
parent
009408d243
commit
d5c87c49a8
@ -373,7 +373,7 @@ impl<A> TxGraph<A> {
|
|||||||
where
|
where
|
||||||
F: FnMut(usize, Txid) -> Option<O> + 'g,
|
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)
|
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:
|
/// Note that this only returns directly conflicting txids and won't include:
|
||||||
/// - descendants of conflicting transactions (which are technically also conflicting)
|
/// - descendants of conflicting transactions (which are technically also conflicting)
|
||||||
/// - transactions conflicting with the given transaction's ancestors
|
/// - transactions conflicting with the given transaction's ancestors
|
||||||
pub fn direct_conflicts_of_tx<'g>(
|
pub fn direct_conflitcs<'g>(
|
||||||
&'g self,
|
&'g self,
|
||||||
tx: &'g Transaction,
|
tx: &'g Transaction,
|
||||||
) -> impl Iterator<Item = (usize, Txid)> + '_ {
|
) -> impl Iterator<Item = (usize, Txid)> + '_ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user