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