rpcserver: fix line lengths

This commit is contained in:
Joost Jager
2023-02-13 11:53:10 +01:00
parent 939614b70d
commit db5dc4d360

View File

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