mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 02:21:08 +02:00
rpcserver: expose interceptor required flag on info call
This commit is contained in:
37
rpcserver.go
37
rpcserver.go
@ -2802,24 +2802,25 @@ func (r *rpcServer) GetInfo(_ context.Context,
|
||||
|
||||
// TODO(roasbeef): add synced height n stuff
|
||||
return &lnrpc.GetInfoResponse{
|
||||
IdentityPubkey: encodedIDPub,
|
||||
NumPendingChannels: nPendingChannels,
|
||||
NumActiveChannels: activeChannels,
|
||||
NumInactiveChannels: inactiveChannels,
|
||||
NumPeers: uint32(len(serverPeers)),
|
||||
BlockHeight: uint32(bestHeight),
|
||||
BlockHash: bestHash.String(),
|
||||
SyncedToChain: isSynced,
|
||||
Testnet: chainreg.IsTestnet(&r.cfg.ActiveNetParams),
|
||||
Chains: activeChains,
|
||||
Uris: uris,
|
||||
Alias: nodeAnn.Alias.String(),
|
||||
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
|
||||
BestHeaderTimestamp: bestHeaderTimestamp,
|
||||
Version: build.Version() + " commit=" + build.Commit,
|
||||
CommitHash: build.CommitHash,
|
||||
SyncedToGraph: isGraphSynced,
|
||||
Features: features,
|
||||
IdentityPubkey: encodedIDPub,
|
||||
NumPendingChannels: nPendingChannels,
|
||||
NumActiveChannels: activeChannels,
|
||||
NumInactiveChannels: inactiveChannels,
|
||||
NumPeers: uint32(len(serverPeers)),
|
||||
BlockHeight: uint32(bestHeight),
|
||||
BlockHash: bestHash.String(),
|
||||
SyncedToChain: isSynced,
|
||||
Testnet: chainreg.IsTestnet(&r.cfg.ActiveNetParams),
|
||||
Chains: activeChains,
|
||||
Uris: uris,
|
||||
Alias: nodeAnn.Alias.String(),
|
||||
Color: routing.EncodeHexColor(nodeAnn.RGBColor),
|
||||
BestHeaderTimestamp: bestHeaderTimestamp,
|
||||
Version: build.Version() + " commit=" + build.Commit,
|
||||
CommitHash: build.CommitHash,
|
||||
SyncedToGraph: isGraphSynced,
|
||||
Features: features,
|
||||
RequireHtlcInterceptor: r.cfg.RequireInterceptor,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user