-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gossip_mapp): add gossip_map implementation
Signed-off-by: Vincenzo Palazzo <[email protected]>
- Loading branch information
1 parent
8ba2d6c
commit 9547e33
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ members = [ | |
"common", | ||
"plugin", | ||
"plugin_macros", | ||
"gossip_map", | ||
] | ||
resolver = "2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |