Skip to content

Commit 9c50083

Browse files
authored
Merge pull request #1433 from arik-so/2022-04-rapid-sync-bg-processor
Allow indication to BackgroundProcessor that graph sync is pending
2 parents a3ad88a + 784addc commit 9c50083

File tree

6 files changed

+430
-248
lines changed

6 files changed

+430
-248
lines changed

fuzz/src/process_network_graph.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
// Import that needs to be added manually
1+
// Imports that need to be added manually
2+
use lightning_rapid_gossip_sync::RapidGossipSync;
23
use utils::test_logger;
34

45
/// Actual fuzz test, method signature and name are fixed
56
fn do_test(data: &[u8]) {
67
let block_hash = bitcoin::BlockHash::default();
78
let network_graph = lightning::routing::network_graph::NetworkGraph::new(block_hash);
8-
lightning_rapid_gossip_sync::processing::update_network_graph(&network_graph, data);
9+
let rapid_sync = RapidGossipSync::new(&network_graph);
10+
let _ = rapid_sync.update_network_graph(data);
911
}
1012

1113
/// Method that needs to be added manually, {name}_test

lightning-background-processor/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1616
[dependencies]
1717
bitcoin = "0.28.1"
1818
lightning = { version = "0.0.106", path = "../lightning", features = ["std"] }
19+
lightning-rapid-gossip-sync = { version = "0.0.106", path = "../lightning-rapid-gossip-sync" }
1920

2021
[dev-dependencies]
2122
lightning = { version = "0.0.106", path = "../lightning", features = ["_test_utils"] }

0 commit comments

Comments
 (0)