From 0e5634ce5986d70ab703f639882e35bba6ee571f Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Thu, 16 Nov 2023 17:44:54 +0100 Subject: [PATCH] bitcoin: poller: document where RBF is handled for spends --- src/bitcoin/poller/looper.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitcoin/poller/looper.rs b/src/bitcoin/poller/looper.rs index 54b9e82e..7aedd524 100644 --- a/src/bitcoin/poller/looper.rs +++ b/src/bitcoin/poller/looper.rs @@ -112,6 +112,8 @@ fn update_coins( // We need to take the newly received ones into account as well, as they may have been // spent within the previous tip and the current one, and we may not poll this chunk of the // chain anymore. + // NOTE: curr_coins contain the "spending" coins. So this takes care of updating the spend_txid + // if a coin's spending transaction gets RBF'd. let to_be_spent: Vec = curr_coins .values() .chain(received.iter())