bitcoin: poller: document where RBF is handled for spends

This commit is contained in:
Antoine Poinsot 2023-11-16 17:44:54 +01:00
parent cf7c4fbac9
commit 0e5634ce59
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -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<bitcoin::OutPoint> = curr_coins
.values()
.chain(received.iter())