nodeinfo/lnd: add rest_address

This commit is contained in:
Erik Arvstedt 2023-03-09 21:43:09 +01:00 committed by Greg Shuflin
parent 5f1e747270
commit 5b6cd9fd49

View File

@ -133,9 +133,10 @@ in {
if 'onion_address' in info:
info["id"] = f"{info['nodeid']}@{info['onion_address']}"
'';
lnd = mkInfo ''
lnd = name: cfg: mkInfo ''
info["rest_address"] = "${nbLib.addressWithPort cfg.restAddress cfg.restPort}"
info["nodeid"] = shell("lncli getinfo | jq -r '.identity_pubkey'")
'';
'' name cfg;
clightning-rest = mkInfo "";
electrs = mkInfo "";
fulcrum = mkInfo "";