mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 06:01:48 +02:00
rpcserver: fix line lengths
This commit is contained in:
11
rpcserver.go
11
rpcserver.go
@@ -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,
|
||||||
|
Reference in New Issue
Block a user