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
returnErr(HandleError{err:"Peer sent commitment_signed when we needed a channel_reestablish",action:Some(msgs::ErrorAction::SendErrorMessage{msg: msgs::ErrorMessage{data:"Peer sent commitment_signed when we needed a channel_reestablish".to_string(),channel_id: msg.channel_id}})});
returnErr(HandleError{err:"Peer sent commitment_signed after we'd started exchanging closing_signeds",action:Some(msgs::ErrorAction::SendErrorMessage{msg: msgs::ErrorMessage{data:"Peer sent commitment_signed after we'd started exchanging closing_signeds".to_string(),channel_id: msg.channel_id}})});
1644
+
}
1642
1645
1643
1646
let funding_script = self.get_funding_redeemscript();
1644
1647
@@ -1730,19 +1733,21 @@ impl Channel {
1730
1733
returnErr(HandleError{err:"Previous monitor update failure prevented generation of RAA",action:Some(ErrorAction::IgnoreError)});
1731
1734
}
1732
1735
1733
-
let(our_commitment_signed, monitor_update) = if need_our_commitment && (self.channel_state&(ChannelState::AwaitingRemoteRevokeasu32)) == 0{
1736
+
let(our_commitment_signed, monitor_update, closing_signed) = if need_our_commitment && (self.channel_state&(ChannelState::AwaitingRemoteRevokeasu32)) == 0{
1734
1737
// If we're AwaitingRemoteRevoke we can't send a new commitment here, but that's ok -
1735
1738
// we'll send one right away when we get the revoke_and_ack when we
returnErr(HandleError{err:"Peer sent revoke_and_ack when we needed a channel_reestablish",action:Some(msgs::ErrorAction::SendErrorMessage{msg: msgs::ErrorMessage{data:"Peer sent revoke_and_ack when we needed a channel_reestablish".to_string(),channel_id: msg.channel_id}})});
returnErr(HandleError{err:"Peer sent revoke_and_ack after we'd started exchanging closing_signeds",action:Some(msgs::ErrorAction::SendErrorMessage{msg: msgs::ErrorMessage{data:"Peer sent revoke_and_ack after we'd started exchanging closing_signeds".to_string(),channel_id: msg.channel_id}})});
0 commit comments