aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2015-06-22 14:14:39 +0800
committerBas van Kervel <bas@ethdev.com>2015-06-22 15:17:09 +0800
commit2737baa6577a337f33f020d587af100c9bda3585 (patch)
treefa59bf8dd6482a40a695321cae53b70b7970d0d7 /rpc
parentf87501b1c547a1d9cd882497ffafbab4f9941ef1 (diff)
downloaddexon-2737baa6577a337f33f020d587af100c9bda3585.tar.gz
dexon-2737baa6577a337f33f020d587af100c9bda3585.tar.zst
dexon-2737baa6577a337f33f020d587af100c9bda3585.zip
fixed unittests
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/admin.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/rpc/api/admin.go b/rpc/api/admin.go
index 532bdcadd..368375c93 100644
--- a/rpc/api/admin.go
+++ b/rpc/api/admin.go
@@ -23,8 +23,6 @@ const (
var (
// mapping between methods and handlers
AdminMapping = map[string]adminhandler{
- // "admin_startRPC": (*adminApi).StartRPC,
- // "admin_stopRPC": (*adminApi).StopRPC,
"admin_addPeer": (*adminApi).AddPeer,
"admin_peers": (*adminApi).Peers,
"admin_nodeInfo": (*adminApi).NodeInfo,
@@ -103,33 +101,6 @@ func (self *adminApi) Peers(req *shared.Request) (interface{}, error) {
return self.ethereum.PeersInfo(), nil
}
-func (self *adminApi) StartRPC(req *shared.Request) (interface{}, error) {
- return false, nil
- // Enable when http rpc interface is refactored to prevent import cycles
- // args := new(StartRpcArgs)
- // if err := self.codec.Decode(req.Params, &args); err != nil {
- // return nil, shared.NewDecodeParamError(err.Error())
- // }
- //
- // cfg := rpc.RpcConfig{
- // ListenAddress: args.Address,
- // ListenPort: args.Port,
- // }
- //
- // err := rpc.Start(self.xeth, cfg)
- // if err == nil {
- // return true, nil
- // }
- // return false, err
-}
-
-func (self *adminApi) StopRPC(req *shared.Request) (interface{}, error) {
- return false, nil
- // Enable when http rpc interface is refactored to prevent import cycles
- // rpc.Stop()
- // return true, nil
-}
-
func (self *adminApi) NodeInfo(req *shared.Request) (interface{}, error) {
return self.ethereum.NodeInfo(), nil
}