Package org.ldk.structs
Class RapidGossipSync
- java.lang.Object
-
- org.ldk.structs.RapidGossipSync
-
public class RapidGossipSync extends Object
The main Rapid Gossip Sync object. See [crate-level documentation] for usage. [crate-level documentation]: crate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
boolean
is_initial_sync_complete()
Returns whether a rapid gossip sync has completed at least once.static RapidGossipSync
of(NetworkGraph network_graph, Logger logger)
Instantiate a new [`RapidGossipSync`] instance.Result_u32GraphSyncErrorZ
update_network_graph_no_std(byte[] update_data, Option_u64Z current_time_unix)
Update network graph from binary data.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static RapidGossipSync of(NetworkGraph network_graph, Logger logger)
Instantiate a new [`RapidGossipSync`] instance.
-
update_network_graph_no_std
public Result_u32GraphSyncErrorZ update_network_graph_no_std(byte[] update_data, Option_u64Z current_time_unix)
Update network graph from binary data. Returns the last sync timestamp to be used the next time rapid sync data is queried. `update_data`: `&[u8]` binary stream that comprises the update data `current_time_unix`: `Option` optional current timestamp to verify data age
-
is_initial_sync_complete
public boolean is_initial_sync_complete()
Returns whether a rapid gossip sync has completed at least once.
-
-