Skip to content

Commit 098d01c

Browse files
committed
f unwrap ok
1 parent 9e0fe4f commit 098d01c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,6 +2463,11 @@ impl<Signer: Sign> Channel<Signer> {
24632463
}
24642464
},
24652465
&HTLCUpdateAwaitingACK::ClaimHTLC { ref payment_preimage, htlc_id, .. } => {
2466+
// If an HTLC claim was previously added to the holding cell (via
2467+
// `get_update_fulfill_htlc`, then generating the claim message itself must
2468+
// not fail - any in between attempts to claim the HTLC will have resulted
2469+
// in it hitting the holding cell again and we cannot change the state of a
2470+
// holding cell HTLC from fulfill to anything else.
24662471
let (update_fulfill_msg_option, additional_monitor_update_opt) = self.get_update_fulfill_htlc(htlc_id, *payment_preimage, logger);
24672472
update_fulfill_htlcs.push(update_fulfill_msg_option.unwrap());
24682473
if let Some(mut additional_monitor_update) = additional_monitor_update_opt {

0 commit comments

Comments
 (0)