Struct ChannelCounterparty
pub struct ChannelCounterparty {
pub node_id: PublicKey,
pub features: Features<InitContext>,
pub unspendable_punishment_reserve: u64,
pub forwarding_info: Option<CounterpartyForwardingInfo>,
pub outbound_htlc_minimum_msat: Option<u64>,
pub outbound_htlc_maximum_msat: Option<u64>,
}
Expand description
Channel parameters which apply to our counterparty. These are split out from ChannelDetails
to better separate parameters.
Fields§
§node_id: PublicKey
The node_id of our counterparty
features: Features<InitContext>
The Features the channel counterparty provided upon last connection. Useful for routing as it is the most up-to-date copy of the counterparty’s features and many routing-relevant features are present in the init context.
unspendable_punishment_reserve: u64
The value, in satoshis, that must always be held in the channel for our counterparty. This value ensures that if our counterparty broadcasts a revoked state, we can punish them by claiming at least this value on chain.
This value is not included in inbound_capacity_msat
as it can never be spent.
forwarding_info: Option<CounterpartyForwardingInfo>
Information on the fees and requirements that the counterparty requires when forwarding payments to us through this channel.
outbound_htlc_minimum_msat: Option<u64>
The smallest value HTLC (in msat) the remote peer will accept, for this channel. This field
is only None
before we have received either the OpenChannel
or AcceptChannel
message
from the remote peer, or for ChannelCounterparty
objects serialized prior to LDK 0.0.107.
outbound_htlc_maximum_msat: Option<u64>
The largest value HTLC (in msat) the remote peer currently will accept, for this channel.
Trait Implementations§
§impl Clone for ChannelCounterparty
impl Clone for ChannelCounterparty
§fn clone(&self) -> ChannelCounterparty
fn clone(&self) -> ChannelCounterparty
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ChannelCounterparty
impl Debug for ChannelCounterparty
§impl PartialEq for ChannelCounterparty
impl PartialEq for ChannelCounterparty
§impl Readable for ChannelCounterparty
impl Readable for ChannelCounterparty
§fn read<R>(reader: &mut R) -> Result<ChannelCounterparty, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<ChannelCounterparty, DecodeError>where
R: Read,
Self
in from the given Read
.§impl Writeable for ChannelCounterparty
impl Writeable for ChannelCounterparty
impl StructuralPartialEq for ChannelCounterparty
Auto Trait Implementations§
impl Freeze for ChannelCounterparty
impl RefUnwindSafe for ChannelCounterparty
impl Send for ChannelCounterparty
impl Sync for ChannelCounterparty
impl Unpin for ChannelCounterparty
impl UnwindSafe for ChannelCounterparty
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request