Skip to content

Commit 3892bf9

Browse files
gossip_map: be able to have basic tests on the gossip map
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 3d285af commit 3892bf9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

contrib/gossip_store

33 MB
Binary file not shown.

gossip_map/src/lib.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ impl GossipMap {
215215
}
216216
}
217217
}
218-
log::info!("{:#?}", self.nodes);
219-
log::info!("{:#?}", self.channels);
220218
Ok(())
221219
}
222220
}
@@ -241,8 +239,8 @@ mod tests {
241239
#[test]
242240
fn read_gossipmap_from_file() {
243241
init();
244-
let path = "/run/media/vincent/VincentSSD/.lightning/testnet/gossip_store";
245-
let pubkey = "03b39d1ddf13ce486de74e9e44e0538f960401a9ec75534ba9cfe4100d65426880";
242+
let path = concat!(env!("CARGO_MANIFEST_DIR"), "/../contrib/gossip_store");
243+
let pubkey = "03e2408a49f07d2f4083a47344138ef89e7617e63919202c92aa8d49b574a560ae";
246244
let map = GossipMap::from_file(path);
247245
assert!(map.is_ok(), "{:?}", map);
248246
let map = map.unwrap();

0 commit comments

Comments
 (0)