aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-02 19:35:25 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-02 19:35:25 +0800
commitebdf339a614b9d03a0b0a0292d1ea24f854d6b3e (patch)
treefc485913dc46347cc3e09e813ccb65c6e6553334 /ethereum.go
parentd2ab322267e489f47b4b908d060411eb0554a029 (diff)
downloadgo-tangerine-ebdf339a614b9d03a0b0a0292d1ea24f854d6b3e.tar.gz
go-tangerine-ebdf339a614b9d03a0b0a0292d1ea24f854d6b3e.tar.zst
go-tangerine-ebdf339a614b9d03a0b0a0292d1ea24f854d6b3e.zip
Implemented RPC framework
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereum.go b/ethereum.go
index c906a6954..df8e9ef7d 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -4,6 +4,7 @@ import (
"container/list"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethdb"
+ "github.com/ethereum/eth-go/etherpc"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
"io/ioutil"
@@ -62,6 +63,8 @@ type Ethereum struct {
MaxPeers int
reactor *ethutil.ReactorEngine
+
+ RpcServer *etherpc.JsonRpcServer
}
func New(caps Caps, usePnp bool) (*Ethereum, error) {
@@ -338,6 +341,7 @@ func (s *Ethereum) Stop() {
s.txPool.Stop()
s.stateManager.Stop()
+ s.RpcServer.Stop()
close(s.shutdownChan)
}