diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-14 19:32:49 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-14 19:32:49 +0800 |
commit | 9fce273ce97a8db091a0bf9d0b503a2ea7261f81 (patch) | |
tree | e1d0dd2abebb0d363d47a5722579bad0146b72da /ethereal | |
parent | 2012e0c67abd8e3012a3eb1fae2e282e2a442d01 (diff) | |
download | dexon-9fce273ce97a8db091a0bf9d0b503a2ea7261f81.tar.gz dexon-9fce273ce97a8db091a0bf9d0b503a2ea7261f81.tar.zst dexon-9fce273ce97a8db091a0bf9d0b503a2ea7261f81.zip |
Refactored RPC client to utils so it can be reused
Diffstat (limited to 'ethereal')
-rw-r--r-- | ethereal/ethereum.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ethereal/ethereum.go b/ethereal/ethereum.go index 32c16f64f..a97d7f498 100644 --- a/ethereal/ethereum.go +++ b/ethereal/ethereum.go @@ -4,8 +4,6 @@ import ( "fmt" "github.com/ethereum/eth-go" "github.com/ethereum/eth-go/ethchain" - "github.com/ethereum/eth-go/ethpub" - "github.com/ethereum/eth-go/ethrpc" "github.com/ethereum/eth-go/ethutil" "github.com/ethereum/go-ethereum/ethereal/ui" "github.com/ethereum/go-ethereum/utils" @@ -104,12 +102,7 @@ func main() { } if StartRpc { - ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum), RpcPort) - if err != nil { - log.Println("Could not start RPC interface:", err) - } else { - go ethereum.RpcServer.Start() - } + utils.DoRpc(ethereum, RpcPort) } log.Printf("Starting Ethereum GUI v%s\n", ethutil.Config.Ver) |