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 next_per_commitment_point = PublicKey::from_secret_key(&self.secp_ctx,&self.build_local_commitment_secret(self.cur_local_commitment_transaction_number));
2087
+
let per_commitment_secret = chan_utils::build_commitment_secret(self.local_keys.commitment_seed,self.cur_local_commitment_transaction_number + 2);
update_fee:None,//TODO: We need to support re-generating any update_fees in the last commitment_signed!
2146
+
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,
2147
+
}
2148
+
}
2149
+
2085
2150
/// May panic if some calls other than message-handling calls (which will all Err immediately)
2086
2151
/// have been called between remove_uncommitted_htlcs_and_mark_paused and this call.
let next_per_commitment_point = PublicKey::from_secret_key(&self.secp_ctx,&self.build_local_commitment_secret(self.cur_local_commitment_transaction_number));
2110
-
let per_commitment_secret = chan_utils::build_commitment_secret(self.local_keys.commitment_seed,self.cur_local_commitment_transaction_number + 2);
2111
-
Some(msgs::RevokeAndACK{
2112
-
channel_id:self.channel_id,
2113
-
per_commitment_secret,
2114
-
next_per_commitment_point,
2115
-
})
2174
+
Some(self.get_last_revoke_and_ack())
2116
2175
}else{
2117
2176
returnErr(ChannelError::Close("Peer attempted to reestablish channel with a very old local commitment transaction"));
2118
2177
};
@@ -2172,59 +2231,8 @@ impl Channel {
2172
2231
}else{
2173
2232
log_debug!(self,"Reconnected channel {} with only lost remote commitment tx", log_bytes!(self.channel_id()));
update_fee:None,//TODO: We need to support re-generating any update_fees in the last commitment_signed!
2226
-
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,
0 commit comments