diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-05 20:16:14 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-05 20:16:14 +0800 |
commit | e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab (patch) | |
tree | 4c04cda45703988643481b6f96811a7bec5c743b /ethereum | |
parent | bcb3ad733258b3d8f639763c2c78c85f43b2c826 (diff) | |
download | go-tangerine-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar go-tangerine-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar.gz go-tangerine-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar.bz2 go-tangerine-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar.lz go-tangerine-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar.xz go-tangerine-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.tar.zst go-tangerine-e94e5ac75dbbc4ec52228ae11377a4fa71ab95ab.zip |
Implemented rpc for ethereal and ethereum
Diffstat (limited to 'ethereum')
-rw-r--r-- | ethereum/ethereum.go | 6 |
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) |