diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-26 04:50:43 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-28 02:29:07 +0800 |
commit | d790229a33b1f3e6256ca6916be17a0cc3663076 (patch) | |
tree | 66351ba83d698b077a29f7374f6805b9ecfcda66 /cmd/utils | |
parent | 7a894e37388fccef1fa7945bb20b7cf8f0c1ce3c (diff) | |
download | dexon-d790229a33b1f3e6256ca6916be17a0cc3663076.tar.gz dexon-d790229a33b1f3e6256ca6916be17a0cc3663076.tar.zst dexon-d790229a33b1f3e6256ca6916be17a0cc3663076.zip |
Move HTTP transport to sub package of RPC
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/cmd.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 95a7f89c8..13fbc7c64 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -38,7 +38,7 @@ import ( "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/miner" "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/rpc" + rpchttp "github.com/ethereum/go-ethereum/rpc/http" "github.com/ethereum/go-ethereum/state" "github.com/ethereum/go-ethereum/websocket" "github.com/ethereum/go-ethereum/xeth" @@ -193,7 +193,7 @@ func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, Secre func StartRpc(ethereum *eth.Ethereum, RpcPort int) { var err error - ethereum.RpcServer, err = rpc.NewJsonRpcServer(xeth.NewJSXEth(ethereum), RpcPort) + ethereum.RpcServer, err = rpchttp.NewRpcHttpServer(xeth.NewJSXEth(ethereum), RpcPort) if err != nil { clilogger.Errorf("Could not start RPC interface (port %v): %v", RpcPort, err) } else { |