Package org.ldk.structs
Class ChainParameters
- java.lang.Object
-
- org.ldk.structs.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainParameters
clone()
Creates a copy of the ChainParametersprotected void
finalize()
BestBlock
get_best_block()
The hash and height of the latest block successfully connected.Network
get_network()
The network for determining the `chain_hash` in Lightning messages.static ChainParameters
of(Network network_arg, BestBlock best_block_arg)
Constructs a new ChainParameters given each fieldvoid
set_best_block(BestBlock val)
The hash and height of the latest block successfully connected.void
set_network(Network val)
The network for determining the `chain_hash` in Lightning messages.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
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.
-
of
public static ChainParameters of(Network network_arg, BestBlock best_block_arg)
Constructs a new ChainParameters given each field
-
clone
public ChainParameters clone()
Creates a copy of the ChainParameters
-
-