Commit 540c79e6 authored by Taylor Gerring's avatar Taylor Gerring

Rename "net" methods

parent 65cad14f
...@@ -513,8 +513,6 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error ...@@ -513,8 +513,6 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
switch req.Method { switch req.Method {
case "eth_coinbase": case "eth_coinbase":
return p.GetCoinbase(reply) return p.GetCoinbase(reply)
case "eth_listening":
return p.GetIsListening(reply)
case "eth_mining": case "eth_mining":
return p.GetIsMining(reply) return p.GetIsMining(reply)
case "eth_setMining": case "eth_setMining":
...@@ -531,8 +529,6 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error ...@@ -531,8 +529,6 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
return err return err
} }
return p.SetDefaultBlockAge(int64(args), reply) return p.SetDefaultBlockAge(int64(args), reply)
case "eth_peerCount":
return p.GetPeerCount(reply)
case "eth_number": case "eth_number":
return p.BlockNumber(reply) return p.BlockNumber(reply)
case "eth_accounts": case "eth_accounts":
...@@ -668,6 +664,10 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error ...@@ -668,6 +664,10 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
return err return err
} }
return p.DbGet(args, reply) return p.DbGet(args, reply)
case "net_listening":
return p.GetIsListening(reply)
case "net_peerCount":
return p.GetPeerCount(reply)
case "shh_newIdentity": case "shh_newIdentity":
return p.NewWhisperIdentity(reply) return p.NewWhisperIdentity(reply)
case "shh_newFilter": case "shh_newFilter":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment