mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-12 22:19:06 +02:00
Merge pull request #2832 from caldon/avg-out-degree-fix
rpcserver: correct avg degree in GetNetworkInfo
This commit is contained in:
commit
fff003f92e
@ -4043,7 +4043,7 @@ func (r *rpcServer) GetNetworkInfo(ctx context.Context,
|
||||
// TODO(roasbeef): also add oldest channel?
|
||||
netInfo := &lnrpc.NetworkInfo{
|
||||
MaxOutDegree: maxChanOut,
|
||||
AvgOutDegree: float64(numChannels) / float64(numNodes),
|
||||
AvgOutDegree: float64(2*numChannels) / float64(numNodes),
|
||||
NumNodes: numNodes,
|
||||
NumChannels: numChannels,
|
||||
TotalNetworkCapacity: int64(totalNetworkCapacity),
|
||||
|
Loading…
x
Reference in New Issue
Block a user