bitcoin: add a comment about the new spend detection logic

This commit is contained in:
Antoine Poinsot 2023-11-17 13:14:38 +01:00
parent 6daf7ac260
commit 317ab964f7
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -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 {