You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a random real-world-network-graph test for the router
This is the same code as was recently failing in our benchmarks,
adapted to use a random starting seed instead of a fixed one and
a smaller iteration to reduce runtime.
letmut d = File::open("net_graph-2021-02-12.bin").expect("Please fetch https://bitcoin.ninja/ldk-net_graph-879e309c128-2020-02-12.bin and place it at lightning/net_graph-2021-02-12.bin");
3884
+
letmut d = tests::get_route_file();
3814
3885
let graph = NetworkGraph::read(&mut d).unwrap();
3815
3886
3816
3887
// First, get 100 (source, destination) pairs for which route-getting actually succeeds...
@@ -3841,7 +3912,7 @@ mod benches {
3841
3912
3842
3913
#[bench]
3843
3914
fngenerate_mpp_routes(bench:&mutBencher){
3844
-
letmut d = File::open("net_graph-2021-02-12.bin").expect("Please fetch https://bitcoin.ninja/ldk-net_graph-879e309c128-2020-02-12.bin and place it at lightning/net_graph-2021-02-12.bin");
3915
+
letmut d = tests::get_route_file();
3845
3916
let graph = NetworkGraph::read(&mut d).unwrap();
3846
3917
3847
3918
// First, get 100 (source, destination) pairs for which route-getting actually succeeds...
0 commit comments