Skip to content

Commit

Permalink
feat(getinfo) : adds lampo_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshit933 committed Apr 6, 2024
1 parent ba5c8f5 commit 7164c34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lampo-common/src/model/getinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ pub struct GetInfo {
pub alias: String,
pub blockheight: u32,
pub warnings: String,
pub lampo_dir: String,
}
2 changes: 2 additions & 0 deletions lampod/src/ln/inventory_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ impl InventoryHandler for LampoInventoryManager {
// Safe to unwrap here
blockheight = height.unwrap();
}
let lampo_dir = self.channel_manager.conf.root_path.to_string();
let getinfo = GetInfo {
node_id: self.channel_manager.manager().get_our_node_id().to_string(),
peers: self.peer_manager.manager().list_peers().len(),
Expand All @@ -57,6 +58,7 @@ impl InventoryHandler for LampoInventoryManager {
alias,
blockheight,
warnings: self.channel_manager.onchain.backend.get_warnings().unwrap(),
lampo_dir
};
let getinfo = json::to_value(getinfo)?;
chan.send(getinfo)?;
Expand Down

0 comments on commit 7164c34

Please sign in to comment.