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 GossipTimestampFilter
clone()
Creates a copy of the GossipTimestampFilterprotected void
finalize()
byte[]
get_chain_hash()
The genesis hash of the blockchain for channel and node informationint
get_first_timestamp()
The starting unix timestampint
get_timestamp_range()
The range of information in secondsstatic GossipTimestampFilter
of(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg)
Constructs a new GossipTimestampFilter given each fieldstatic Result_GossipTimestampFilterDecodeErrorZ
read(byte[] ser)
Read a GossipTimestampFilter from a byte array, created by GossipTimestampFilter_writevoid
set_chain_hash(byte[] val)
The genesis hash of the blockchain for channel and node informationvoid
set_first_timestamp(int val)
The starting unix timestampvoid
set_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
-
write
public byte[] write()
Serialize the GossipTimestampFilter object into a byte array which can be read by GossipTimestampFilter_read
-
read
public static Result_GossipTimestampFilterDecodeErrorZ read(byte[] ser)
Read a GossipTimestampFilter from a byte array, created by GossipTimestampFilter_write
-
-