Skip to content

Commit 7357657

Browse files
committed
Update network graph sample used in benchmarks
1 parent c56265d commit 7357657

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ jobs:
143143
id: cache-graph
144144
uses: actions/cache@v2
145145
with:
146-
path: lightning/net_graph-2021-05-27.bin
147-
key: ldk-net_graph-45d86ead641d-2021-05-27.bin
146+
path: lightning/net_graph-2021-05-31.bin
147+
key: ldk-net_graph-v0.0.15-2021-05-31.bin
148148
- name: Fetch routing graph snapshot
149149
if: steps.cache-graph.outputs.cache-hit != 'true'
150150
run: |
151-
wget -O lightning/net_graph-2021-05-27.bin https://bitcoin.ninja/ldk-net_graph-45d86ead641d-2021-05-27.bin
152-
if [ "$(sha256sum lightning/net_graph-2021-05-27.bin | awk '{ print $1 }')" != "3d6261187cfa583255d978efb908b51c2f4dc4ad9a7160cd2c5263c9a4830121" ]; then
151+
wget -O lightning/net_graph-2021-05-31.bin https://bitcoin.ninja/ldk-net_graph-v0.0.15-2021-05-31.bin
152+
if [ "$(sha256sum lightning/net_graph-2021-05-31.bin | awk '{ print $1 }')" != "05a5361278f68ee2afd086cc04a1f927a63924be451f3221d380533acfacc303" ]; then
153153
echo "Bad hash"
154154
exit 1
155155
fi

lightning/src/routing/router.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,8 +3907,8 @@ pub(crate) mod test_utils {
39073907
use std::fs::File;
39083908
/// Tries to open a network graph file, or panics with a URL to fetch it.
39093909
pub(crate) fn get_route_file() -> Result<std::fs::File, &'static str> {
3910-
let res = File::open("net_graph-2021-05-27.bin") // By default we're run in RL/lightning
3911-
.or_else(|_| File::open("lightning/net_graph-2021-05-27.bin")) // We may be run manually in RL/
3910+
let res = File::open("net_graph-2021-05-31.bin") // By default we're run in RL/lightning
3911+
.or_else(|_| File::open("lightning/net_graph-2021-05-31.bin")) // We may be run manually in RL/
39123912
.or_else(|_| { // Fall back to guessing based on the binary location
39133913
// path is likely something like .../rust-lightning/target/debug/deps/lightning-...
39143914
let mut path = std::env::current_exe().unwrap();
@@ -3917,11 +3917,11 @@ pub(crate) mod test_utils {
39173917
path.pop(); // debug
39183918
path.pop(); // target
39193919
path.push("lightning");
3920-
path.push("net_graph-2021-05-27.bin");
3920+
path.push("net_graph-2021-05-31.bin");
39213921
eprintln!("{}", path.to_str().unwrap());
39223922
File::open(path)
39233923
})
3924-
.map_err(|_| "Please fetch https://bitcoin.ninja/ldk-net_graph-45d86ead641d-2021-05-27.bin and place it at lightning/net_graph-2021-05-27.bin");
3924+
.map_err(|_| "Please fetch https://bitcoin.ninja/ldk-net_graph-v0.0.15-2021-05-31.bin and place it at lightning/net_graph-2021-05-31.bin");
39253925
#[cfg(require_route_graph_test)]
39263926
return Ok(res.unwrap());
39273927
#[cfg(not(require_route_graph_test))]

0 commit comments

Comments
 (0)