You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fail channel if we can't sign a new commitment tx during HTLC claim
Previously, we could fail to generate a new commitment transaction
but it simply indicated we had gone to doule-claim an HTLC. Now
that double-claims are returned instead as Ok(None), we should
handle the error case and fail the channel, as the only way to hit
the error case is if key derivation failed or the user refused to
sign the new commitment transaction.
This also resolves an issue where we wouldn't inform our
ChannelMonitor of the new payment preimage in case we failed to
fetch a signature for the new commitment transaction.
returnErr(Some((chan.get().get_counterparty_node_id(),handle_monitor_err!(self, e, channel_state, chan,RAACommitmentOrder::CommitmentFirst,false, msgs.is_some()).unwrap_err())));
2691
-
}
2686
+
log_given_level!(self.logger,if e == ChannelMonitorUpdateErr::PermanentFailure{Level::Error} else {Level::Debug},
2687
+
"Failed to update channel monitor with preimage {:?}: {:?}",
2688
+
payment_preimage, e);
2689
+
returnErr(Some((
2690
+
chan.get().get_counterparty_node_id(),
2691
+
handle_monitor_err!(self, e, channel_state, chan,RAACommitmentOrder::CommitmentFirst,false, msgs.is_some()).unwrap_err(),
2692
+
)));
2692
2693
}
2693
2694
ifletSome((msg, commitment_signed)) = msgs {
2694
2695
log_debug!(self.logger,"Claiming funds for HTLC with preimage {} resulted in a commitment_signed for channel {}",
0 commit comments