Skip to content

Commit

Permalink
gossip_map: be able to have basic tests on the gossip map
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Jul 26, 2024
1 parent c64ed57 commit 143a30e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file added contrib/gossip_store
Binary file not shown.
6 changes: 2 additions & 4 deletions gossip_map/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,6 @@ impl GossipMap {
}
}
}
log::info!("{:#?}", self.nodes);
log::info!("{:#?}", self.channels);
Ok(())
}
}
Expand All @@ -241,8 +239,8 @@ mod tests {
#[test]
fn read_gossipmap_from_file() {
init();
let path = "/run/media/vincent/VincentSSD/.lightning/testnet/gossip_store";
let pubkey = "03b39d1ddf13ce486de74e9e44e0538f960401a9ec75534ba9cfe4100d65426880";
let path = concat!(env!("CARGO_MANIFEST_DIR"), "/../contrib/gossip_store");
let pubkey = "03e2408a49f07d2f4083a47344138ef89e7617e63919202c92aa8d49b574a560ae";
let map = GossipMap::from_file(path);
assert!(map.is_ok(), "{:?}", map);
let map = map.unwrap();
Expand Down

0 comments on commit 143a30e

Please sign in to comment.