add comment

pull/936/head
Richard Liu 6 years ago
parent 469fed36c8
commit 8a0d3f26f3
  1. 2
      internal/hmyapi/net.go

@ -23,7 +23,7 @@ func (s *PublicNetAPI) PeerCount() hexutil.Uint {
return hexutil.Uint(s.net.GetPeerCount())
}
// Version ...
// Version returns the network version, i.e. network ID identifying which network we are using
func (s *PublicNetAPI) Version() string {
return fmt.Sprintf("%d", s.networkVersion) // TODO(ricl): we should add support for network id (https://github.com/ethereum/wiki/wiki/JSON-RPC#net_version)
}

Loading…
Cancel
Save