Package org.ldk.structs
Class ChannelReady
- java.lang.Object
-
- org.ldk.structs.ChannelReady
-
public class ChannelReady extends Object
A [`channel_ready`] message to be sent to or received from a peer. [`channel_ready`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-channel_ready-message
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelReady
clone()
Creates a copy of the ChannelReadyboolean
eq(ChannelReady b)
Checks if two ChannelReadys contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_channel_id()
The channel IDbyte[]
get_next_per_commitment_point()
The per-commitment point of the second commitment transactionOption_u64Z
get_short_channel_id_alias()
If set, provides a `short_channel_id` alias for this channel.static ChannelReady
of(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, Option_u64Z short_channel_id_alias_arg)
Constructs a new ChannelReady given each fieldstatic Result_ChannelReadyDecodeErrorZ
read(byte[] ser)
Read a ChannelReady from a byte array, created by ChannelReady_writevoid
set_channel_id(byte[] val)
The channel IDvoid
set_next_per_commitment_point(byte[] val)
The per-commitment point of the second commitment transactionvoid
set_short_channel_id_alias(Option_u64Z val)
If set, provides a `short_channel_id` alias for this channel.byte[]
write()
Serialize the ChannelReady object into a byte array which can be read by ChannelReady_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_id
public byte[] get_channel_id()
The channel ID
-
set_channel_id
public void set_channel_id(byte[] val)
The channel ID
-
get_next_per_commitment_point
public byte[] get_next_per_commitment_point()
The per-commitment point of the second commitment transaction
-
set_next_per_commitment_point
public void set_next_per_commitment_point(byte[] val)
The per-commitment point of the second commitment transaction
-
get_short_channel_id_alias
public Option_u64Z get_short_channel_id_alias()
If set, provides a `short_channel_id` alias for this channel. The sender will accept payments to be forwarded over this SCID and forward them to this messages' recipient.
-
set_short_channel_id_alias
public void set_short_channel_id_alias(Option_u64Z val)
If set, provides a `short_channel_id` alias for this channel. The sender will accept payments to be forwarded over this SCID and forward them to this messages' recipient.
-
of
public static ChannelReady of(byte[] channel_id_arg, byte[] next_per_commitment_point_arg, Option_u64Z short_channel_id_alias_arg)
Constructs a new ChannelReady given each field
-
clone
public ChannelReady clone()
Creates a copy of the ChannelReady
-
eq
public boolean eq(ChannelReady b)
Checks if two ChannelReadys contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
write
public byte[] write()
Serialize the ChannelReady object into a byte array which can be read by ChannelReady_read
-
read
public static Result_ChannelReadyDecodeErrorZ read(byte[] ser)
Read a ChannelReady from a byte array, created by ChannelReady_write
-
-