aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-07 16:59:16 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-07 16:59:16 +0800
commit6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1 (patch)
treeb8b1218e456d3daaad4a36e6ba022323c3762038 /ethereum.go
parent9dab7dcc3c99d387ad2c0a1623b574d3023bdfae (diff)
downloadgo-tangerine-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar
go-tangerine-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar.gz
go-tangerine-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar.bz2
go-tangerine-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar.lz
go-tangerine-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar.xz
go-tangerine-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar.zst
go-tangerine-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.zip
Revert "ethreact - Feature/ethutil refactor"
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/ethereum.go b/ethereum.go
index 69fcc338e..f4c497ca4 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -6,7 +6,6 @@ import (
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethlog"
- "github.com/ethereum/eth-go/ethreact"
"github.com/ethereum/eth-go/ethrpc"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
@@ -72,7 +71,7 @@ type Ethereum struct {
listening bool
- reactor *ethreact.ReactorEngine
+ reactor *ethutil.ReactorEngine
RpcServer *ethrpc.JsonRpcServer
@@ -107,7 +106,7 @@ func New(db ethutil.Database, clientIdentity ethwire.ClientIdentity, keyManager
keyManager: keyManager,
clientIdentity: clientIdentity,
}
- ethereum.reactor = ethreact.New()
+ ethereum.reactor = ethutil.NewReactorEngine()
ethereum.txPool = ethchain.NewTxPool(ethereum)
ethereum.blockChain = ethchain.NewBlockChain(ethereum)
@@ -119,7 +118,7 @@ func New(db ethutil.Database, clientIdentity ethwire.ClientIdentity, keyManager
return ethereum, nil
}
-func (s *Ethereum) Reactor() *ethreact.ReactorEngine {
+func (s *Ethereum) Reactor() *ethutil.ReactorEngine {
return s.reactor
}
@@ -351,7 +350,6 @@ func (s *Ethereum) ReapDeadPeerHandler() {
// Start the ethereum
func (s *Ethereum) Start(seed bool) {
- s.reactor.Start()
// Bind to addr and port
ln, err := net.Listen("tcp", ":"+s.Port)
if err != nil {
@@ -465,9 +463,6 @@ func (s *Ethereum) Stop() {
s.txPool.Stop()
s.stateManager.Stop()
- s.reactor.Flush()
- s.reactor.Stop()
-
ethlogger.Infoln("Server stopped")
close(s.shutdownChan)
}