Skip to content

Commit 5c1e2a2

Browse files
committed
removed white spaces and commits
1 parent d2f40a0 commit 5c1e2a2

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
@@ -265,10 +265,7 @@ const INITIAL_COMMITMENT_NUMBER: u64 = (1 << 48) - 1;
265265
// calling channel_id() before we're set up or things like get_outbound_funding_signed on an
266266
// inbound channel.
267267
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,
272269
user_id: u64,
273270

274271
channel_id: [u8; 32],
@@ -542,7 +539,7 @@ impl Channel {
542539
if msg.max_accepted_htlcs > 483 {
543540
return_error_message!("max_accpted_htlcs > 483");
544541
}
545-
//optional parameter checking
542+
//optional parameter checking
546543
// MAY fail the channel if
547544
if msg.funding_satoshis < configurations.channel_limits.funding_satoshis {
548545
return_error_message!("funding satoshis is less than the user specified limit");
@@ -612,7 +609,7 @@ impl Channel {
612609

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

0 commit comments

Comments
 (0)