X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fchannel.rs;h=7949b4591f255dfa812ca9f273c94e416a9947a0;hb=5473bd423630c54a812386faab9a4199cbb75ef6;hp=cd529f5c80120c47dc89da26c786b6e121d5f13d;hpb=cac0355e72998ef8bda106595814092c4a8cb5bd;p=rust-lightning diff --git a/src/ln/channel.rs b/src/ln/channel.rs index cd529f5c8..7949b4591 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -271,9 +271,6 @@ pub(super) struct Channel { // is received. holding_cell_update_fee is updated when there are additional // update_fee() during ChannelState::AwaitingRemoteRevoke. holding_cell_update_fee: Option, - #[cfg(test)] - pub next_local_htlc_id: u64, - #[cfg(not(test))] next_local_htlc_id: u64, #[cfg(test)] pub next_remote_htlc_id: u64, @@ -394,7 +391,7 @@ macro_rules! secp_check { impl Channel { // Convert constants + channel value to limits: - pub fn get_our_max_htlc_value_in_flight_msat(channel_value_satoshis: u64) -> u64 { + fn get_our_max_htlc_value_in_flight_msat(channel_value_satoshis: u64) -> u64 { channel_value_satoshis * 1000 / 10 //TODO } @@ -1609,7 +1606,6 @@ impl Channel { cltv_expiry: msg.cltv_expiry, state: InboundHTLCState::RemoteAnnounced(pending_forward_state), }); - Ok(()) }