|
|
@ -32,6 +32,7 @@ var ( |
|
|
|
netMapping = map[string]nethandler{ |
|
|
|
netMapping = map[string]nethandler{ |
|
|
|
"net_peerCount": (*netApi).PeerCount, |
|
|
|
"net_peerCount": (*netApi).PeerCount, |
|
|
|
"net_listening": (*netApi).IsListening, |
|
|
|
"net_listening": (*netApi).IsListening, |
|
|
|
|
|
|
|
"net_version": (*netApi).Version, |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -93,3 +94,7 @@ func (self *netApi) IsListening(req *shared.Request) (interface{}, error) { |
|
|
|
return self.xeth.IsListening(), nil |
|
|
|
return self.xeth.IsListening(), nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (self *netApi) Version(req *shared.Request) (interface{}, error) { |
|
|
|
|
|
|
|
return self.xeth.NetworkVersion(), nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|