File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
lightning-rapid-gossip-sync/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 30
30
//! use bitcoin::blockdata::constants::genesis_block;
31
31
//! use bitcoin::Network;
32
32
//! use lightning::routing::gossip::NetworkGraph;
33
- //! use lightning::util::test_utils::TestLogger;
34
33
//! use lightning_rapid_gossip_sync::RapidGossipSync;
35
34
//!
35
+ //! # use lightning::util::logger::{Logger, Record};
36
+ //! # struct FakeLogger {}
37
+ //! # impl Logger for FakeLogger {
38
+ //! # fn log(&self, record: &Record) { unimplemented!() }
39
+ //! # }
40
+ //! # let logger = FakeLogger {};
41
+ //!
36
42
//! let block_hash = genesis_block(Network::Bitcoin).header.block_hash();
37
- //! let logger = TestLogger::new();
38
43
//! let network_graph = NetworkGraph::new(block_hash, &logger);
39
44
//! let rapid_sync = RapidGossipSync::new(&network_graph);
40
45
//! let new_last_sync_timestamp_result = rapid_sync.sync_network_graph_with_file_path("./rapid_sync.lngossip");
You can’t perform that action at this time.
0 commit comments