| Crates.io | clightningrpc_gossip_map |
| lib.rs | clightningrpc_gossip_map |
| version | 0.0.1-beta.5 |
| created_at | 2024-07-26 17:43:00.630763+00 |
| updated_at | 2024-08-04 15:35:48.731333+00 |
| description | Crate that provides a plugin API to give the possibility to implement a plugin in Rust |
| homepage | https://github.com/laanwj/rust-clightning-rpc |
| repository | https://github.com/laanwj/rust-clightning-rpc.git |
| max_upload_size | |
| id | 1316512 |
| size | 31,470 |
Core Lightning Gossip Map parser to access the gossip map with rust.
fn main() {
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();
assert!(map.get_node(pubkey).is_some(), "node with id `{pubkey}` not found!");
}