Skip to content

Commit 3d1c72e

Browse files
committed
Update net graph copy used in tests and bench for new format
1 parent 5b59178 commit 3d1c72e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ jobs:
144144
uses: actions/cache@v2
145145
with:
146146
path: lightning/net_graph-2021-02-12.bin
147-
key: net_graph-2021-02-12
147+
key: ldk-net_graph-05f0c5a0d772-2020-02-12.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-02-12.bin https://bitcoin.ninja/ldk-net_graph-879e309c128-2020-02-12.bin
152-
if [ "$(sha256sum lightning/net_graph-2021-02-12.bin | awk '{ print $1 }')" != "890a1f80dfb6ef674a1e4ff0f23cd73d740731c395f99d85abbede0cfbb701ab" ]; then
151+
wget -O lightning/net_graph-2021-02-12.bin https://bitcoin.ninja/ldk-net_graph-05f0c5a0d772-2020-02-12.bin
152+
if [ "$(sha256sum lightning/net_graph-2021-02-12.bin | awk '{ print $1 }')" != "7116fca78551fedc714a604cec0ad1ca66caa77bb4d0051290258e7a10e0c6e7" ]; 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
@@ -3890,7 +3890,7 @@ mod tests {
38903890
let mut d = match get_route_file() {
38913891
Ok(f) => f,
38923892
Err(_) => {
3893-
eprintln!("Please fetch https://bitcoin.ninja/ldk-net_graph-879e309c128-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-05f0c5a0d772-2020-02-12.bin and place it at lightning/net_graph-2021-02-12.bin");
38943894
return;
38953895
},
38963896
};
@@ -3917,7 +3917,7 @@ mod tests {
39173917
let mut d = match get_route_file() {
39183918
Ok(f) => f,
39193919
Err(_) => {
3920-
eprintln!("Please fetch https://bitcoin.ninja/ldk-net_graph-879e309c128-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-05f0c5a0d772-2020-02-12.bin and place it at lightning/net_graph-2021-02-12.bin");
39213921
return;
39223922
},
39233923
};
@@ -3955,7 +3955,7 @@ mod benches {
39553955
#[bench]
39563956
fn generate_routes(bench: &mut Bencher) {
39573957
let mut d = tests::get_route_file()
3958-
.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");
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");
39593959
let graph = NetworkGraph::read(&mut d).unwrap();
39603960

39613961
// First, get 100 (source, destination) pairs for which route-getting actually succeeds...
@@ -3987,7 +3987,7 @@ mod benches {
39873987
#[bench]
39883988
fn generate_mpp_routes(bench: &mut Bencher) {
39893989
let mut d = tests::get_route_file()
3990-
.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");
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");
39913991
let graph = NetworkGraph::read(&mut d).unwrap();
39923992

39933993
// First, get 100 (source, destination) pairs for which route-getting actually succeeds...

0 commit comments

Comments
 (0)