doc(chain): Clarify direct_conflicts_of_tx's docs

Co-authored-by: Wei Chen <wzc110@gmail.com>
This commit is contained in:
Daniela Brozzoni 2023-09-29 16:51:15 +02:00
parent 4742d88ea3
commit a3e8480ad9
No known key found for this signature in database
GPG Key ID: 7DE4F1FDCED0AB87

View File

@ -381,8 +381,9 @@ impl<A> TxGraph<A> {
/// transaction's inputs (spends). The conflicting txids are returned with the given
/// transaction's vin (in which it conflicts).
///
/// Note that this only returns directly conflicting txids and does not include descendants of
/// those txids (which are technically also conflicting).
/// 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>(
&'g self,
tx: &'g Transaction,