// is received. holding_cell_update_fee is updated when there are additional
// update_fee() during ChannelState::AwaitingRemoteRevoke.
holding_cell_update_fee: Option<u64>,
- #[cfg(test)]
- pub next_local_htlc_id: u64,
- #[cfg(not(test))]
next_local_htlc_id: u64,
#[cfg(test)]
pub next_remote_htlc_id: u64,
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
}
cltv_expiry: msg.cltv_expiry,
state: InboundHTLCState::RemoteAnnounced(pending_forward_state),
});
-
Ok(())
}