Package org.ldk.structs
Class GossipTimestampFilter
- java.lang.Object
-
- org.ldk.structs.GossipTimestampFilter
-
public class GossipTimestampFilter extends Object
A gossip_timestamp_filter message is used by a node to request gossip relay for messages in the requested time range when the gossip_queries feature has been negotiated.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GossipTimestampFilterclone()Creates a copy of the GossipTimestampFilterprotected voidfinalize()byte[]get_chain_hash()The genesis hash of the blockchain for channel and node informationintget_first_timestamp()The starting unix timestampintget_timestamp_range()The range of information in secondsstatic GossipTimestampFilterof(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg)Constructs a new GossipTimestampFilter given each fieldstatic Result_GossipTimestampFilterDecodeErrorZread(byte[] ser)Read a GossipTimestampFilter from a byte array, created by GossipTimestampFilter_writevoidset_chain_hash(byte[] val)The genesis hash of the blockchain for channel and node informationvoidset_first_timestamp(int val)The starting unix timestampvoidset_timestamp_range(int val)The range of information in secondsbyte[]write()Serialize the GossipTimestampFilter object into a byte array which can be read by GossipTimestampFilter_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_chain_hash
public byte[] get_chain_hash()
The genesis hash of the blockchain for channel and node information
-
set_chain_hash
public void set_chain_hash(byte[] val)
The genesis hash of the blockchain for channel and node information
-
get_first_timestamp
public int get_first_timestamp()
The starting unix timestamp
-
set_first_timestamp
public void set_first_timestamp(int val)
The starting unix timestamp
-
get_timestamp_range
public int get_timestamp_range()
The range of information in seconds
-
set_timestamp_range
public void set_timestamp_range(int val)
The range of information in seconds
-
of
public static GossipTimestampFilter of(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg)
Constructs a new GossipTimestampFilter given each field
-
clone
public GossipTimestampFilter clone()
Creates a copy of the GossipTimestampFilter
-
read
public static Result_GossipTimestampFilterDecodeErrorZ read(byte[] ser)
Read a GossipTimestampFilter from a byte array, created by GossipTimestampFilter_write
-
write
public byte[] write()
Serialize the GossipTimestampFilter object into a byte array which can be read by GossipTimestampFilter_read
-
-