Skip to content

Commit 653f418

Browse files
committed
removed white spaces and commits
1 parent 2fcfbba commit 653f418

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/ln/channel.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@ const INITIAL_COMMITMENT_NUMBER: u64 = (1 << 48) - 1;
264264
// calling channel_id() before we're set up or things like get_outbound_funding_signed on an
265265
// inbound channel.
266266
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,
271268
user_id: u64,
272269

273270
channel_id: [u8; 32],
@@ -541,7 +538,7 @@ impl Channel {
541538
if msg.max_accepted_htlcs > 483 {
542539
return_error_message!("max_accpted_htlcs > 483");
543540
}
544-
//optional parameter checking
541+
//optional parameter checking
545542
// MAY fail the channel if
546543
if msg.funding_satoshis < configurations.channel_limits.funding_satoshis {
547544
return_error_message!("funding satoshis is less than the user specified limit");
@@ -611,7 +608,7 @@ impl Channel {
611608

612609
let mut chan = Channel {
613610
user_id: user_id,
614-
config: (*configurations).clone(),
611+
config: (*configurations).clone(),
615612
channel_id: msg.temporary_channel_id,
616613
channel_state: (ChannelState::OurInitSent as u32) | (ChannelState::TheirInitSent as u32),
617614
channel_outbound: false,

0 commit comments

Comments
 (0)