Implemented first few methods via public api

This commit is contained in:
Maran
2014-05-02 20:00:58 +02:00
parent 69d83b1da5
commit 4f20e8f649
5 changed files with 37 additions and 28 deletions

View File

@ -4,7 +4,6 @@ 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"
@ -64,7 +63,7 @@ type Ethereum struct {
reactor *ethutil.ReactorEngine
RpcServer *etherpc.JsonRpcServer
// TODO: This no worky: RpcServer *etherpc.JsonRpcServer
}
func New(caps Caps, usePnp bool) (*Ethereum, error) {
@ -341,7 +340,7 @@ func (s *Ethereum) Stop() {
s.txPool.Stop()
s.stateManager.Stop()
s.RpcServer.Stop()
// TODO: THIS NO WORKY: s.RpcServer.Stop()
close(s.shutdownChan)
}