From 32c6126593100d37c38e423ec62c56938e5f9155 Mon Sep 17 00:00:00 2001
From: obscuren <geffobscura@gmail.com>
Date: Tue, 13 May 2014 12:45:47 +0200
Subject: [PATCH] Fix

---
 ethereal/ethereum.go | 2 +-
 ethereum/ethereum.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ethereal/ethereum.go b/ethereal/ethereum.go
index d848e9a68..fd8c56dae 100644
--- a/ethereal/ethereum.go
+++ b/ethereal/ethereum.go
@@ -100,7 +100,7 @@ func main() {
 	}
 
 	if StartRpc {
-		ethereum.RpcServer = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum))
+		ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum))
 		if err != nil {
 			log.Println("Could not start RPC interface:", err)
 		} else {
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go
index 8ef061be0..b60eb4181 100644
--- a/ethereum/ethereum.go
+++ b/ethereum/ethereum.go
@@ -133,7 +133,7 @@ func main() {
 		go console.Start()
 	}
 	if StartRpc {
-		ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()))
+		ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum))
 		if err != nil {
 			logger.Infoln("Could not start RPC interface:", err)
 		} else {
-- 
GitLab