Package org.ldk.structs
Class RapidGossipSync
- java.lang.Object
-
- org.ldk.structs.RapidGossipSync
-
public class RapidGossipSync extends Object
Rapid Gossip Sync struct 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 voidfinalize()booleanis_initial_sync_complete()Returns whether a rapid gossip sync has completed at least oncestatic RapidGossipSyncof(NetworkGraph network_graph)Instantiate a new [`RapidGossipSync`] instanceResult_u32GraphSyncErrorZsync_network_graph_with_file_path(String sync_path)Sync gossip data from a file Returns the last sync timestamp to be used the next time rapid sync data is queried.Result_u32GraphSyncErrorZupdate_network_graph(byte[] update_data)Update network graph from binary data.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
of
public static RapidGossipSync of(NetworkGraph network_graph)
Instantiate a new [`RapidGossipSync`] instance
-
sync_network_graph_with_file_path
public Result_u32GraphSyncErrorZ sync_network_graph_with_file_path(String sync_path)
Sync gossip data from a file Returns the last sync timestamp to be used the next time rapid sync data is queried. `network_graph`: The network graph to apply the updates to `sync_path`: Path to the file where the gossip update data is located
-
is_initial_sync_complete
public boolean is_initial_sync_complete()
Returns whether a rapid gossip sync has completed at least once
-
update_network_graph
public Result_u32GraphSyncErrorZ update_network_graph(byte[] update_data)
Update network graph from binary data. Returns the last sync timestamp to be used the next time rapid sync data is queried. `network_graph`: network graph to be updated `update_data`: `&[u8]` binary stream that comprises the update data
-
-