Package org.ldk.structs
Class QueryShortChannelIds
- java.lang.Object
-
- org.ldk.structs.QueryShortChannelIds
-
public class QueryShortChannelIds extends Object
A [`query_short_channel_ids`] message is used to query a peer for routing gossip messages related to one or more `short_channel_id`s. The query recipient will reply with the latest, if available, [`ChannelAnnouncement`], [`ChannelUpdate`] and [`NodeAnnouncement`] messages it maintains for the requested `short_channel_id`s followed by a [`ReplyShortChannelIdsEnd`] message. The `short_channel_id`s sent in this query are encoded. We only support `encoding_type=0` uncompressed serialization and do not support `encoding_type=1` zlib serialization. [`query_short_channel_ids`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-query_short_channel_idsreply_short_channel_ids_end-messages
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryShortChannelIds
clone()
Creates a copy of the QueryShortChannelIdsboolean
eq(QueryShortChannelIds b)
Checks if two QueryShortChannelIdss contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_chain_hash()
The genesis hash of the blockchain being queriedlong[]
get_short_channel_ids()
The short_channel_ids that are being queried Returns a copy of the field.static QueryShortChannelIds
of(byte[] chain_hash_arg, long[] short_channel_ids_arg)
Constructs a new QueryShortChannelIds given each fieldstatic Result_QueryShortChannelIdsDecodeErrorZ
read(byte[] ser)
Read a QueryShortChannelIds from a byte array, created by QueryShortChannelIds_writevoid
set_chain_hash(byte[] val)
The genesis hash of the blockchain being queriedvoid
set_short_channel_ids(long[] val)
The short_channel_ids that are being queriedbyte[]
write()
Serialize the QueryShortChannelIds object into a byte array which can be read by QueryShortChannelIds_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_chain_hash
public byte[] get_chain_hash()
The genesis hash of the blockchain being queried
-
set_chain_hash
public void set_chain_hash(byte[] val)
The genesis hash of the blockchain being queried
-
get_short_channel_ids
public long[] get_short_channel_ids()
The short_channel_ids that are being queried Returns a copy of the field.
-
set_short_channel_ids
public void set_short_channel_ids(long[] val)
The short_channel_ids that are being queried
-
of
public static QueryShortChannelIds of(byte[] chain_hash_arg, long[] short_channel_ids_arg)
Constructs a new QueryShortChannelIds given each field
-
clone
public QueryShortChannelIds clone()
Creates a copy of the QueryShortChannelIds
-
eq
public boolean eq(QueryShortChannelIds b)
Checks if two QueryShortChannelIdss 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.
-
read
public static Result_QueryShortChannelIdsDecodeErrorZ read(byte[] ser)
Read a QueryShortChannelIds from a byte array, created by QueryShortChannelIds_write
-
write
public byte[] write()
Serialize the QueryShortChannelIds object into a byte array which can be read by QueryShortChannelIds_read
-
-