X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Fprocess_network_graph.rs;h=b4c6a29e8a99f47744fdb9fd0caf2468c7604e57;hb=10480f009e6e57cd409916ea08ac679b0953e4d5;hp=ae38d678a4d25aa127567216e761912feb434df3;hpb=6e00c28a55006be93e26b145d8670c594144c785;p=rust-lightning diff --git a/fuzz/src/process_network_graph.rs b/fuzz/src/process_network_graph.rs index ae38d678..b4c6a29e 100644 --- a/fuzz/src/process_network_graph.rs +++ b/fuzz/src/process_network_graph.rs @@ -1,17 +1,13 @@ // Imports that need to be added manually -use lightning::util::logger::Logger; use lightning_rapid_gossip_sync::RapidGossipSync; -use utils::test_logger; - -use std::sync::Arc; +use crate::utils::test_logger; /// Actual fuzz test, method signature and name are fixed fn do_test(data: &[u8], out: Out) { - let block_hash = bitcoin::BlockHash::default(); - let logger: Arc = Arc::new(test_logger::TestLogger::new("".to_owned(), out)); - let network_graph = lightning::routing::gossip::NetworkGraph::new(block_hash, logger); - let rapid_sync = RapidGossipSync::new(&network_graph); + let logger = test_logger::TestLogger::new("".to_owned(), out); + let network_graph = lightning::routing::gossip::NetworkGraph::new(bitcoin::Network::Bitcoin, &logger); + let rapid_sync = RapidGossipSync::new(&network_graph, &logger); let _ = rapid_sync.update_network_graph(data); }