Class ChainParameters


  • public class ChainParameters
    extends Object
    Chain-related parameters used to construct a new `ChannelManager`. Typically, the block-specific parameters are derived from the best block hash for the network, as a newly constructed `ChannelManager` will not have created any channels yet. These parameters are not needed when deserializing a previously constructed `ChannelManager`.
    • Method Detail

      • get_network

        public Network get_network()
        The network for determining the `chain_hash` in Lightning messages.
      • set_network

        public void set_network​(Network val)
        The network for determining the `chain_hash` in Lightning messages.
      • get_best_block

        public BestBlock get_best_block()
        The hash and height of the latest block successfully connected. Used to track on-chain channel funding outputs and send payments with reliable timelocks.
      • set_best_block

        public void set_best_block​(BestBlock val)
        The hash and height of the latest block successfully connected. Used to track on-chain channel funding outputs and send payments with reliable timelocks.