From d751b0333d133ff0d91f5f3a21d78f2ce21c5423 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Wed, 13 Dec 2023 13:18:25 +0700 Subject: [PATCH] feat: use network from LND response --- lnd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnd.go b/lnd.go index e21e4db6..f0855e32 100644 --- a/lnd.go +++ b/lnd.go @@ -61,7 +61,7 @@ func (svc *LNDService) GetInfo(ctx context.Context, senderPubkey string) (info * Alias: resp.Alias, Color: resp.Color, Pubkey: resp.IdentityPubkey, - Network: "mainnet", + Network: resp.Chains[0].Network, BlockHeight: resp.BlockHeight, BlockHash: resp.BlockHash, }, nil