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
let _our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.cur_holder_commitment_transaction_number - 1;
3688
-
if msg.next_remote_commitment_number + 1 < _our_commitment_transaction {
3689
-
returnErr(
3690
-
ChannelError::Warn(format!("Peer attempted to reestablish channel with a very old local commitment transaction: {} (received) vs {} (expected)", msg.next_remote_commitment_number, _our_commitment_transaction))
3691
-
);
3692
-
}
3693
-
Ok(())
3694
-
}
3695
-
3696
3682
/// May panic if some calls other than message-handling calls (which will all Err immediately)
3697
3683
/// have been called between remove_uncommitted_htlcs_and_mark_paused and this call.
let our_commitment_transaction = INITIAL_COMMITMENT_NUMBER - self.cur_holder_commitment_transaction_number - 1;
3722
+
if msg.next_remote_commitment_number + 1 < our_commitment_transaction {
3723
+
returnErr(
3724
+
ChannelError::Warn(format!("Peer attempted to reestablish channel with a very old local commitment transaction: {} (received) vs {} (expected)", msg.next_remote_commitment_number, our_commitment_transaction))
3725
+
);
3737
3726
}
3738
3727
3739
3728
// Go ahead and unmark PeerDisconnected as various calls we may make check for it (and all
// The node B should not broadcast the transaction to force close the channel!
7401
+
assert!(node_txn.is_empty());
7402
+
// B should now detect that there is something wrong and should force close the channel.
7403
+
// FIXME: we sent the warning message when the peer is behind to give the possibility to restore try to fix the problem
7404
+
// but the spec is unclear on what we should do in the case of a warning message. For now we force close the channel anyway.
7405
+
let exp_err = "We have fallen behind - we have received proof that if we broadcast remote is going to claim our funds - we can\'t do any automated broadcasting";
0 commit comments