add git commit hash to nodeInfo

This commit is contained in:
Ethan Buchman
2015-07-10 15:50:58 +00:00
parent 751b892cba
commit 3f7f3dd37f
10 changed files with 38 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ func (n *Node) Address() string {
// Set the basic status and chain_id info for a node from RPC responses
func (n *Node) SetInfo(status *rpctypes.ResponseStatus, netinfo *rpctypes.ResponseNetInfo) {
n.LastSeen = time.Now()
n.ChainID = status.ChainID
n.ChainID = status.NodeInfo.ChainID
n.BlockHeight = status.LatestBlockHeight
n.NetInfo = netinfo
// n.Validator