From 317ab964f707f049e51bbb4be7ae32975ca3da45 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Fri, 17 Nov 2023 13:14:38 +0100 Subject: [PATCH] bitcoin: add a comment about the new spend detection logic --- src/bitcoin/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitcoin/mod.rs b/src/bitcoin/mod.rs index e767321a..f9369d0e 100644 --- a/src/bitcoin/mod.rs +++ b/src/bitcoin/mod.rs @@ -293,6 +293,8 @@ impl BitcoinInterface for d::BitcoinD { Conflict::Dropped }) .or_else(|| { + // If the coin is actually being spent, but by another transaction, it + // will just be set at the next poll in `spending_coins()`. if self.is_in_mempool(txid) { Some(Conflict::Dropped) } else {