Implemented RPC framework

This commit is contained in:
Maran
2014-05-02 13:35:25 +02:00
parent d2ab322267
commit ebdf339a61
3 changed files with 257 additions and 0 deletions

View File

@ -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)
}