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