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