X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=fuzz%2Fsrc%2Fprocess_network_graph.rs;h=980c147e96a024f45ae44ad7e33fae9ea390154e;hb=73ebb1bd1b78f7b89104199d5c00c073972d4d0b;hp=ae38d678a4d25aa127567216e761912feb434df3;hpb=a551a6219c06d4ed149dcecc4553bc8a85e408f0;p=rust-lightning diff --git a/fuzz/src/process_network_graph.rs b/fuzz/src/process_network_graph.rs index ae38d678..980c147e 100644 --- a/fuzz/src/process_network_graph.rs +++ b/fuzz/src/process_network_graph.rs @@ -1,17 +1,14 @@ // 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); }