mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-02-23 13:54:25 +01:00
add getinfo call to cluster
This commit is contained in:
@@ -55,6 +55,11 @@ func InitLNDCluster(c *service.Config, logger *lecho.Logger, ctx context.Context
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
getInfo, err := n.GetInfo(ctx, &lnrpc.GetInfoRequest{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
n.IdentityPubkey = getInfo.IdentityPubkey
|
||||
nodes = append(nodes, n)
|
||||
}
|
||||
logger.Infof("Initialized LND cluster with %d nodes", len(nodes))
|
||||
|
||||
Reference in New Issue
Block a user