@@ -539,14 +539,14 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
539
539
/// Assumes chain_hash has already been checked and corresponds with what we expect!
540
540
pub fn new_from_req ( fee_estimator : & FeeEstimator , keys_provider : & Arc < KeysInterface < ChanKeySigner = ChanSigner > > , their_node_id : PublicKey , their_features : InitFeatures , msg : & msgs:: OpenChannel , user_id : u64 , logger : Arc < Logger > , config : & UserConfig ) -> Result < Channel < ChanSigner > , ChannelError > {
541
541
let mut chan_keys = keys_provider. get_channel_keys ( true ) ;
542
- let channel_pubkeys = ChannelPublicKeys {
542
+ let their_pubkeys = ChannelPublicKeys {
543
543
funding_pubkey : msg. funding_pubkey ,
544
544
revocation_basepoint : msg. revocation_basepoint ,
545
545
payment_basepoint : msg. payment_basepoint ,
546
546
delayed_payment_basepoint : msg. delayed_payment_basepoint ,
547
547
htlc_basepoint : msg. htlc_basepoint
548
548
} ;
549
- chan_keys. set_remote_channel_pubkeys ( & channel_pubkeys ) ;
549
+ chan_keys. set_remote_channel_pubkeys ( & their_pubkeys ) ;
550
550
let mut local_config = ( * config) . channel_options . clone ( ) ;
551
551
552
552
if config. own_channel_config . our_to_self_delay < BREAKDOWN_TIMEOUT {
@@ -728,13 +728,7 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
728
728
their_max_accepted_htlcs : msg. max_accepted_htlcs ,
729
729
minimum_depth : config. own_channel_config . minimum_depth ,
730
730
731
- their_pubkeys : Some ( ChannelPublicKeys {
732
- funding_pubkey : msg. funding_pubkey ,
733
- revocation_basepoint : msg. revocation_basepoint ,
734
- payment_basepoint : msg. payment_basepoint ,
735
- delayed_payment_basepoint : msg. delayed_payment_basepoint ,
736
- htlc_basepoint : msg. htlc_basepoint ,
737
- } ) ,
731
+ their_pubkeys : Some ( their_pubkeys) ,
738
732
their_cur_commitment_point : Some ( msg. first_per_commitment_point ) ,
739
733
740
734
their_prev_commitment_point : None ,
0 commit comments