Clean up repeated_id test a bit to test indirectly
[rust-lightning] / src / ln / channel.rs
index 0deaf8ca3f10c3350a0cb1dd6d5bbbe54b3237f1..98eb19fee032ea4aee96afb924d8ab6f8644e104 100644 (file)
@@ -272,9 +272,6 @@ pub(super) struct Channel {
        // update_fee() during ChannelState::AwaitingRemoteRevoke.
        holding_cell_update_fee: Option<u64>,
        next_local_htlc_id: u64,
-       #[cfg(test)]
-       pub next_remote_htlc_id: u64,
-       #[cfg(not(test))]
        next_remote_htlc_id: u64,
        channel_update_count: u32,
        feerate_per_kw: u64,
@@ -391,7 +388,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
        }
 
@@ -1606,7 +1603,6 @@ impl Channel {
                        cltv_expiry: msg.cltv_expiry,
                        state: InboundHTLCState::RemoteAnnounced(pending_forward_state),
                });
-
                Ok(())
        }