aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-05 20:16:14 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-05 20:16:14 +0800
commite94e5ac75dbbc4ec52228ae11377a4fa71ab95ab (patch)
tree4c04cda45703988643481b6f96811a7bec5c743b /ethereum
parentbcb3ad733258b3d8f639763c2c78c85f43b2c826 (diff)
downloaddexon-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar.gz
dexon-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar.zst
dexon-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.zip
Implemented rpc for ethereal and ethereum
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/ethereum.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go
index 829f71e39..1315c0120 100644
--- a/ethereum/ethereum.go
+++ b/ethereum/ethereum.go
@@ -134,10 +134,8 @@ func main() {
go console.Start()
}
if StartRpc {
- // TODO: Can we make this work again?
- //ethereum.RpcServer = etherpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum))
- rpc := etherpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum))
- go rpc.Start()
+ ethereum.RpcServer = etherpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum.StateManager(), ethereum.BlockChain(), ethereum.TxPool()))
+ go ethereum.RpcServer.Start()
}
RegisterInterrupts(ethereum)