clightningrpc_gossip_map

Crates.ioclightningrpc_gossip_map
lib.rsclightningrpc_gossip_map
version0.0.1-beta.5
sourcesrc
created_at2024-07-26 17:43:00.630763
updated_at2024-08-04 15:35:48.731333
descriptionCrate that provides a plugin API to give the possibility to implement a plugin in Rust
homepagehttps://github.com/laanwj/rust-clightning-rpc
repositoryhttps://github.com/laanwj/rust-clightning-rpc.git
max_upload_size
id1316512
size31,470
Vincenzo Palazzo (vincenzopalazzo)

documentation

README

gossip map

Core Lightning Gossip Map parser to access the gossip map with rust.

Example

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!");
}
Commit count: 282

cargo fmt