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 a loose channel_reestablish not after reconnect",action:Some(msgs::ErrorAction::SendErrorMessage{msg: msgs::ErrorMessage{data:"Peer sent a loose channel_reestablish not after reconnect".to_string(),channel_id: msg.channel_id}})});
2019
+
// While BOLT 2 doesn't indicate explicitly we should error this channel here, it
2020
+
// almost certainly indicates we are going to end up out-of-sync in some way, so we
2021
+
// just close here instead of trying to recover.
2022
+
returnErr(ChannelError::Close("Peer sent a loose channel_reestablish not after reconnect"));
2020
2023
}
2021
2024
2022
2025
if msg.next_local_commitment_number == 0 || msg.next_local_commitment_number >= INITIAL_COMMITMENT_NUMBER ||
// Go ahead and unmark PeerDisconnected as various calls we may make check for it (and all
@@ -2041,7 +2044,7 @@ impl Channel {
2041
2044
next_per_commitment_point,
2042
2045
});
2043
2046
}else{
2044
-
returnErr(HandleError{err:"Peer attempted to reestablish channel with a very old local commitment transaction",action:Some(msgs::ErrorAction::SendErrorMessage{msg: msgs::ErrorMessage{data:"Peer attempted to reestablish channel with a very old remote commitment transaction".to_string(),channel_id: msg.channel_id}})});
2047
+
returnErr(ChannelError::Close("Peer attempted to reestablish channel with a very old local commitment transaction"));
2045
2048
}
2046
2049
2047
2050
if msg.next_local_commitment_number == INITIAL_COMMITMENT_NUMBER - self.cur_remote_commitment_transaction_number{
commitment_signed:self.send_commitment_no_state_update().expect("It looks like we failed to re-generate a commitment_signed we had previously sent?").0,
2089
2093
}),None));
2090
2094
}else{
2091
-
returnErr(HandleError{err:"Peer attempted to reestablish channel with a very old remote commitment transaction",action:Some(msgs::ErrorAction::SendErrorMessage{msg: msgs::ErrorMessage{data:"Peer attempted to reestablish channel with a very old remote commitment transaction".to_string(),channel_id: msg.channel_id}})});
2095
+
returnErr(ChannelError::Close("Peer attempted to reestablish channel with a very old remote commitment transaction"));
0 commit comments