Struct lightning::ln::channelmanager::ChannelCounterparty[][src]

pub struct ChannelCounterparty {
    pub node_id: PublicKey,
    pub features: InitFeatures,
    pub unspendable_punishment_reserve: u64,
    pub forwarding_info: Option<CounterpartyForwardingInfo>,
}
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: InitFeatures

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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.