File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -5180,13 +5180,10 @@ impl<SP: Deref> Channel<SP> where
5180
5180
}
5181
5181
5182
5182
for htlc in self.context.pending_inbound_htlcs.iter_mut() {
5183
- let htlc_resolution = if let &InboundHTLCState::RemoteAnnounced(ref resolution) = &htlc.state {
5184
- Some(resolution.clone())
5185
- } else { None };
5186
- if let Some(htlc_resolution) = htlc_resolution {
5183
+ if let &InboundHTLCState::RemoteAnnounced(ref htlc_resolution) = &htlc.state {
5187
5184
log_trace!(logger, "Updating HTLC {} to AwaitingRemoteRevokeToAnnounce due to commitment_signed in channel {}.",
5188
5185
&htlc.payment_hash, &self.context.channel_id);
5189
- htlc.state = InboundHTLCState::AwaitingRemoteRevokeToAnnounce(htlc_resolution);
5186
+ htlc.state = InboundHTLCState::AwaitingRemoteRevokeToAnnounce(htlc_resolution.clone() );
5190
5187
need_commitment = true;
5191
5188
}
5192
5189
}
You can’t perform that action at this time.
0 commit comments