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