@@ -3857,8 +3857,8 @@ mod tests {
3857
3857
use util:: ser:: Readable ;
3858
3858
/// Tries to open a network graph file, or panics with a URL to fetch it.
3859
3859
pub ( super ) fn get_route_file ( ) -> Result < std:: fs:: File , std:: io:: Error > {
3860
- let res = File :: open ( "net_graph-2021-02-12 .bin" ) // By default we're run in RL/lightning
3861
- . or_else ( |_| File :: open ( "lightning/net_graph-2021-02-12 .bin" ) ) // We may be run manually in RL/
3860
+ let res = File :: open ( "net_graph-2021-05-26 .bin" ) // By default we're run in RL/lightning
3861
+ . or_else ( |_| File :: open ( "lightning/net_graph-2021-05-26 .bin" ) ) // We may be run manually in RL/
3862
3862
. or_else ( |_| { // Fall back to guessing based on the binary location
3863
3863
// path is likely something like .../rust-lightning/target/debug/deps/lightning-...
3864
3864
let mut path = std:: env:: current_exe ( ) . unwrap ( ) ;
@@ -3867,7 +3867,7 @@ mod tests {
3867
3867
path. pop ( ) ; // debug
3868
3868
path. pop ( ) ; // target
3869
3869
path. push ( "lightning" ) ;
3870
- path. push ( "net_graph-2021-02-12 .bin" ) ;
3870
+ path. push ( "net_graph-2021-05-26 .bin" ) ;
3871
3871
eprintln ! ( "{}" , path. to_str( ) . unwrap( ) ) ;
3872
3872
File :: open ( path)
3873
3873
} ) ;
@@ -3890,7 +3890,7 @@ mod tests {
3890
3890
let mut d = match get_route_file ( ) {
3891
3891
Ok ( f) => f,
3892
3892
Err ( _) => {
3893
- eprintln ! ( "Please fetch https://bitcoin.ninja/ldk-net_graph-05f0c5a0d772-2020-02-12 .bin and place it at lightning/net_graph-2021-02-12 .bin" ) ;
3893
+ eprintln ! ( "Please fetch https://bitcoin.ninja/ldk-net_graph-2138c80ccaa5-2021-05-26 .bin and place it at lightning/net_graph-2021-05-26 .bin" ) ;
3894
3894
return ;
3895
3895
} ,
3896
3896
} ;
@@ -3917,7 +3917,7 @@ mod tests {
3917
3917
let mut d = match get_route_file ( ) {
3918
3918
Ok ( f) => f,
3919
3919
Err ( _) => {
3920
- eprintln ! ( "Please fetch https://bitcoin.ninja/ldk-net_graph-05f0c5a0d772-2020-02-12 .bin and place it at lightning/net_graph-2021-02-12 .bin" ) ;
3920
+ eprintln ! ( "Please fetch https://bitcoin.ninja/ldk-net_graph-2138c80ccaa5-2021-05-26 .bin and place it at lightning/net_graph-2021-05-26 .bin" ) ;
3921
3921
return ;
3922
3922
} ,
3923
3923
} ;
@@ -3955,7 +3955,7 @@ mod benches {
3955
3955
#[ bench]
3956
3956
fn generate_routes ( bench : & mut Bencher ) {
3957
3957
let mut d = tests:: get_route_file ( )
3958
- . expect ( "Please fetch https://bitcoin.ninja/ldk-net_graph-05f0c5a0d772-2020-02-12 .bin and place it at lightning/net_graph-2021-02-12 .bin" ) ;
3958
+ . expect ( "Please fetch https://bitcoin.ninja/ldk-net_graph-2138c80ccaa5-2021-05-26 .bin and place it at lightning/net_graph-2021-05-26 .bin" ) ;
3959
3959
let graph = NetworkGraph :: read ( & mut d) . unwrap ( ) ;
3960
3960
3961
3961
// First, get 100 (source, destination) pairs for which route-getting actually succeeds...
@@ -3987,7 +3987,7 @@ mod benches {
3987
3987
#[ bench]
3988
3988
fn generate_mpp_routes ( bench : & mut Bencher ) {
3989
3989
let mut d = tests:: get_route_file ( )
3990
- . expect ( "Please fetch https://bitcoin.ninja/ldk-net_graph-05f0c5a0d772-2020-02-12 .bin and place it at lightning/net_graph-2021-02-12 .bin" ) ;
3990
+ . expect ( "Please fetch https://bitcoin.ninja/ldk-net_graph-2138c80ccaa5-2021-05-26 .bin and place it at lightning/net_graph-2021-05-26 .bin" ) ;
3991
3991
let graph = NetworkGraph :: read ( & mut d) . unwrap ( ) ;
3992
3992
3993
3993
// First, get 100 (source, destination) pairs for which route-getting actually succeeds...
0 commit comments