From a3e8480ad9d41190da8de732dc8d00d636a0c911 Mon Sep 17 00:00:00 2001 From: Daniela Brozzoni Date: Fri, 29 Sep 2023 16:51:15 +0200 Subject: [PATCH] doc(chain): Clarify direct_conflicts_of_tx's docs Co-authored-by: Wei Chen --- crates/chain/src/tx_graph.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,