rpcserver: fix line lengths

This commit is contained in:
Joost Jager 2023-02-13 11:53:10 +01:00
parent 939614b70d
commit db5dc4d360
No known key found for this signature in database
GPG Key ID: B9A26449A5528325

View File

@ -2887,6 +2887,11 @@ func (r *rpcServer) GetInfo(_ context.Context,
}
// TODO(roasbeef): add synced height n stuff
isTestNet := chainreg.IsTestnet(&r.cfg.ActiveNetParams)
nodeColor := routing.EncodeHexColor(nodeAnn.RGBColor)
version := build.Version() + " commit=" + build.Commit
return &lnrpc.GetInfoResponse{
IdentityPubkey: encodedIDPub,
NumPendingChannels: nPendingChannels,
@ -2896,13 +2901,13 @@ func (r *rpcServer) GetInfo(_ context.Context,
BlockHeight: uint32(bestHeight),
BlockHash: bestHash.String(),
SyncedToChain: isSynced,
Testnet: chainreg.IsTestnet(&r.cfg.ActiveNetParams),
Testnet: isTestNet,
Chains: activeChains,
Uris: uris,
Alias: nodeAnn.Alias.String(),
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
Color: nodeColor,
BestHeaderTimestamp: bestHeaderTimestamp,
Version: build.Version() + " commit=" + build.Commit,
Version: version,
CommitHash: build.CommitHash,
SyncedToGraph: isGraphSynced,
Features: features,