From: Daniela Brozzoni Date: Fri, 29 Sep 2023 14:51:15 +0000 (+0200) Subject: doc(chain): Clarify direct_conflicts_of_tx's docs X-Git-Tag: v1.0.0-alpha.2~6^2~5 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.EncoderStringWriter.html?a=commitdiff_plain;h=a3e8480ad9d41190da8de732dc8d00d636a0c911;p=bdk doc(chain): Clarify direct_conflicts_of_tx's docs Co-authored-by: Wei Chen --- diff --git a/crates/chain/src/tx_graph.rs b/crates/chain/src/tx_graph.rs index 4c0cdb3d..036f116d 100644 --- a/crates/chain/src/tx_graph.rs +++ b/crates/chain/src/tx_graph.rs @@ -381,8 +381,9 @@ impl TxGraph { /// 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,