Package org.ldk.structs
Class ReplyChannelRange
- java.lang.Object
-
- org.ldk.structs.ReplyChannelRange
-
public class ReplyChannelRange extends Object
A reply_channel_range message is a reply to a query_channel_range message. Multiple reply_channel_range messages can be sent in reply to a single query_channel_range message. The query recipient makes a best effort to respond based on their local network view which may not be a perfect view of the network. The short_channel_ids in the reply are encoded. We only support encoding_type=0 uncompressed serialization and do not support encoding_type=1 zlib serialization.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplyChannelRange
clone()
Creates a copy of the ReplyChannelRangeprotected void
finalize()
byte[]
get_chain_hash()
The genesis hash of the blockchain being queriedint
get_first_blocknum()
The height of the first block in the range of the replyint
get_number_of_blocks()
The number of blocks included in the range of the replyboolean
get_sync_complete()
True when this is the final reply for a querystatic ReplyChannelRange
of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean sync_complete_arg, long[] short_channel_ids_arg)
Constructs a new ReplyChannelRange given each fieldstatic Result_ReplyChannelRangeDecodeErrorZ
read(byte[] ser)
Read a ReplyChannelRange from a byte array, created by ReplyChannelRange_writevoid
set_chain_hash(byte[] val)
The genesis hash of the blockchain being queriedvoid
set_first_blocknum(int val)
The height of the first block in the range of the replyvoid
set_number_of_blocks(int val)
The number of blocks included in the range of the replyvoid
set_short_channel_ids(long[] val)
The short_channel_ids in the channel rangevoid
set_sync_complete(boolean val)
True when this is the final reply for a querybyte[]
write()
Serialize the ReplyChannelRange object into a byte array which can be read by ReplyChannelRange_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_first_blocknum
public int get_first_blocknum()
The height of the first block in the range of the reply
-
set_first_blocknum
public void set_first_blocknum(int val)
The height of the first block in the range of the reply
-
get_number_of_blocks
public int get_number_of_blocks()
The number of blocks included in the range of the reply
-
set_number_of_blocks
public void set_number_of_blocks(int val)
The number of blocks included in the range of the reply
-
get_sync_complete
public boolean get_sync_complete()
True when this is the final reply for a query
-
set_sync_complete
public void set_sync_complete(boolean val)
True when this is the final reply for a query
-
set_short_channel_ids
public void set_short_channel_ids(long[] val)
The short_channel_ids in the channel range
-
of
public static ReplyChannelRange of(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean sync_complete_arg, long[] short_channel_ids_arg)
Constructs a new ReplyChannelRange given each field
-
clone
public ReplyChannelRange clone()
Creates a copy of the ReplyChannelRange
-
read
public static Result_ReplyChannelRangeDecodeErrorZ read(byte[] ser)
Read a ReplyChannelRange from a byte array, created by ReplyChannelRange_write
-
write
public byte[] write()
Serialize the ReplyChannelRange object into a byte array which can be read by ReplyChannelRange_read
-
-