Skip to content

Commit

Permalink
fix: change mainnet to bitcoin (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya authored Jul 19, 2024
1 parent 80cac0b commit 4e964f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lnclient/lnd/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,15 @@ func (svc *LNDService) GetInfo(ctx context.Context) (info *lnclient.NodeInfo, er
if err != nil {
return nil, err
}
network := resp.Chains[0].Network
if network == "mainnet" {
network = "bitcoin"
}
return &lnclient.NodeInfo{
Alias: resp.Alias,
Color: resp.Color,
Pubkey: resp.IdentityPubkey,
Network: resp.Chains[0].Network,
Network: network,
BlockHeight: resp.BlockHeight,
BlockHash: resp.BlockHash,
}, nil
Expand Down

0 comments on commit 4e964f4

Please sign in to comment.