Class RapidGossipSync


  • public class RapidGossipSync
    extends Object
    The main Rapid Gossip Sync object. See [crate-level documentation] for usage. [crate-level documentation]: crate
    • Method Detail

      • 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
      • is_initial_sync_complete

        public boolean is_initial_sync_complete()
        Returns whether a rapid gossip sync has completed at least once.