@@ -266,10 +266,7 @@ const INITIAL_COMMITMENT_NUMBER: u64 = (1 << 48) - 1;
266
266
// calling channel_id() before we're set up or things like get_outbound_funding_signed on an
267
267
// inbound channel.
268
268
pub struct Channel {
269
- ///TODO: split limits and runtime setting here
270
- /// channel limits cant change during channel existence
271
- /// but other settings can, but they need an update broadcast before they can change.
272
- config : UserConfigurations ,
269
+ config : UserConfigurations ,
273
270
user_id : u64 ,
274
271
275
272
channel_id : [ u8 ; 32 ] ,
@@ -543,7 +540,7 @@ impl Channel {
543
540
if msg. max_accepted_htlcs > 483 {
544
541
return_error_message ! ( "max_accpted_htlcs > 483" ) ;
545
542
}
546
- //optional parameter checking
543
+ //optional parameter checking
547
544
// MAY fail the channel if
548
545
if msg. funding_satoshis < configurations. channel_limits . funding_satoshis {
549
546
return_error_message ! ( "funding satoshis is less than the user specified limit" ) ;
@@ -613,7 +610,7 @@ impl Channel {
613
610
614
611
let mut chan = Channel {
615
612
user_id : user_id,
616
- config : ( * configurations) . clone ( ) ,
613
+ config : ( * configurations) . clone ( ) ,
617
614
channel_id : msg. temporary_channel_id ,
618
615
channel_state : ( ChannelState :: OurInitSent as u32 ) | ( ChannelState :: TheirInitSent as u32 ) ,
619
616
channel_outbound : false ,
0 commit comments