Class ChannelCounterparty


  • public class ChannelCounterparty
    extends Object
    Channel parameters which apply to our counterparty. These are split out from [`ChannelDetails`] to better separate parameters.
    • Method Detail

      • 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