File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lightning-rapid-gossip-sync/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 38
38
//!
39
39
//! After the gossip data snapshot has been downloaded, one of the client's graph processing
40
40
//! functions needs to be called. In this example, we process the update by reading its contents
41
- //! from disk, which we do by calling [sync_network_graph_with_file_path ]:
41
+ //! from disk, which we do by calling [`RapidGossipSync::update_network_graph` ]:
42
42
//!
43
43
//! ```
44
44
//! use bitcoin::blockdata::constants::genesis_block;
56
56
//! let block_hash = genesis_block(Network::Bitcoin).header.block_hash();
57
57
//! let network_graph = NetworkGraph::new(block_hash, &logger);
58
58
//! let rapid_sync = RapidGossipSync::new(&network_graph);
59
- //! let new_last_sync_timestamp_result = rapid_sync.sync_network_graph_with_file_path("./rapid_sync.lngossip");
59
+ //! let snapshot_contents: &[u8] = &[0; 0];
60
+ //! let new_last_sync_timestamp_result = rapid_sync.update_network_graph(snapshot_contents);
60
61
//! ```
61
- //! [sync_network_graph_with_file_path]: RapidGossipSync::sync_network_graph_with_file_path
62
62
63
63
#![ cfg_attr( all( not( feature = "std" ) , not( test) ) , no_std) ]
64
64
You can’t perform that action at this time.
0 commit comments