nodeinfo/lnd: add rest_address

This commit is contained in:
Erik Arvstedt 2023-03-09 21:43:09 +01:00
parent a4bfefd562
commit 54a21874ae
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -133,9 +133,10 @@ in {
if 'onion_address' in info: if 'onion_address' in info:
info["id"] = f"{info['nodeid']}@{info['onion_address']}" 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'") info["nodeid"] = shell("lncli getinfo | jq -r '.identity_pubkey'")
''; '' name cfg;
clightning-rest = mkInfo ""; clightning-rest = mkInfo "";
electrs = mkInfo ""; electrs = mkInfo "";
fulcrum = mkInfo ""; fulcrum = mkInfo "";