Package org.ldk.structs
Class ChannelCounterparty
- java.lang.Object
-
- org.ldk.structs.ChannelCounterparty
-
public class ChannelCounterparty extends Object
Channel parameters which apply to our counterparty. These are split out from [`ChannelDetails`] to better separate parameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelCounterparty
clone()
Creates a copy of the ChannelCounterpartyprotected void
finalize()
InitFeatures
get_features()
The Features the channel counterparty provided upon last connection.byte[]
get_node_id()
The node_id of our counterpartylong
get_unspendable_punishment_reserve()
The value, in satoshis, that must always be held in the channel for our counterparty.void
set_features(InitFeatures val)
The Features the channel counterparty provided upon last connection.void
set_node_id(byte[] val)
The node_id of our counterpartyvoid
set_unspendable_punishment_reserve(long val)
The value, in satoshis, that must always be held in the channel for our counterparty.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_node_id
public byte[] get_node_id()
The node_id of our counterparty
-
set_node_id
public void set_node_id(byte[] val)
The node_id of our counterparty
-
get_features
public InitFeatures get_features()
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.
-
set_features
public void set_features(InitFeatures val)
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.
-
get_unspendable_punishment_reserve
public long get_unspendable_punishment_reserve()
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. [`inbound_capacity_msat`]: ChannelDetails::inbound_capacity_msat
-
set_unspendable_punishment_reserve
public void set_unspendable_punishment_reserve(long val)
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. [`inbound_capacity_msat`]: ChannelDetails::inbound_capacity_msat
-
clone
public ChannelCounterparty clone()
Creates a copy of the ChannelCounterparty
-
-