diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-02 23:36:14 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-02 23:36:14 +0800 |
commit | 540c79e6adbb5b616e6a1e0612d69dfba07776c9 (patch) | |
tree | 90b31a318ef5809a56e2ef9a34b748248b4b85e7 /rpc | |
parent | 65cad14f9b27db396d036f47814d4843d947ac43 (diff) | |
download | dexon-540c79e6adbb5b616e6a1e0612d69dfba07776c9.tar.gz dexon-540c79e6adbb5b616e6a1e0612d69dfba07776c9.tar.zst dexon-540c79e6adbb5b616e6a1e0612d69dfba07776c9.zip |
Rename "net" methods
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rpc/api.go b/rpc/api.go index 28024c206..782b5848c 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -513,8 +513,6 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error switch req.Method { case "eth_coinbase": return p.GetCoinbase(reply) - case "eth_listening": - return p.GetIsListening(reply) case "eth_mining": return p.GetIsMining(reply) case "eth_setMining": @@ -531,8 +529,6 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error return err } return p.SetDefaultBlockAge(int64(args), reply) - case "eth_peerCount": - return p.GetPeerCount(reply) case "eth_number": return p.BlockNumber(reply) case "eth_accounts": @@ -668,6 +664,10 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error return err } return p.DbGet(args, reply) + case "net_listening": + return p.GetIsListening(reply) + case "net_peerCount": + return p.GetPeerCount(reply) case "shh_newIdentity": return p.NewWhisperIdentity(reply) case "shh_newFilter": |