Skip to content
Snippets Groups Projects
Commit c0f27af4 authored by Miguel Montes's avatar Miguel Montes
Browse files

Agregado de peerCount

parent ffc5b819
No related branches found
No related tags found
No related merge requests found
......@@ -366,6 +366,7 @@ func status() {
IsSealer bool `json:"isSealer"`
IsMining bool `json:"isMining"`
BlockNumber int64 `json:"blockNumber"`
PeerCount int64 `json:"peerCount"`
}{
Accounts: make(map[string]*big.Int),
}
......@@ -390,6 +391,7 @@ func status() {
nodeStatus.Network = uint64(ethInfo["network"].(float64))
nodeStatus.BFAGenesis = nodeStatus.Genesis == bfa.Genesis
nodeStatus.BFANetwork = nodeStatus.Network == bfa.Network
nodeStatus.PeerCount = node.PeerCount()
util.PrintJson(nodeStatus)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment