Skip to content

Commit

Permalink
feat(gossip_mapp): add gossip_map implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Sep 19, 2022
1 parent 8ba2d6c commit 9547e33
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"common",
"plugin",
"plugin_macros",
"gossip_map",
]
resolver = "2"

6 changes: 6 additions & 0 deletions gossip_map/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "clightningrpc_gossip_map"
version = "0.1.0"
edition = "2021"

[dependencies]
20 changes: 20 additions & 0 deletions gossip_map/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
struct GossipMap;

impl GossipMap {
// Create a new instance of the gossip map.
pub fn new() -> Self {
GossipMap {}
}

pub fn get_channel(short_chananel_id: &str) -> Result<(), ()> {
Ok(())
}

pub fn get_node(node_id: &str) -> Result<(), ()> {
Ok(())
}

pub fn refresh() -> Result<(), ()> {
Ok(())
}
}
16 changes: 16 additions & 0 deletions gossip_map/src/types.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! Gossip map types implementations.
/// TODO: implement it.
struct GossipNodeId;

/// TODO: implement it.
struct GossipNode;

/// TODO: implement it
struct GossipChannel;

/// TODO: implement it
struct GossipPartialChannel;

// TODO: implementing it
struct GossipStoredHeader;

0 comments on commit 9547e33

Please sign in to comment.