Skip to content

Commit 2ead59b

Browse files
committed
f incl always even on resolution
1 parent 4348e49 commit 2ead59b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,9 +1900,10 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
19001900
Some(commitment_tx_output_idx) == htlc.transaction_output_index
19011901
} else { false }
19021902
});
1903-
if !htlc_update_confd {
1904-
res.insert(source.clone(), (htlc.clone(),
1905-
us.counterparty_fulfilled_htlcs.get(&SentHTLCId::from_source(source)).cloned()));
1903+
let counterparty_resolved_preimage_opt =
1904+
us.counterparty_fulfilled_htlcs.get(&SentHTLCId::from_source(source)).cloned();
1905+
if !htlc_update_confd || counterparty_resolved_preimage_opt.is_some() {
1906+
res.insert(source.clone(), (htlc.clone(), counterparty_resolved_preimage_opt));
19061907
}
19071908
}
19081909
}

0 commit comments

Comments
 (0)