aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-04 17:57:02 +0800
committerobscuren <geffobscura@gmail.com>2014-11-04 17:57:02 +0800
commitf59a3b67f69b26f969084e0de165435e80bd8e12 (patch)
treef92098fa0252484fcdccdaf6075c2842713a2fc9 /ethereum.go
parent1025d097fd4e5171dadb2c1a8eeb43b7730b13b6 (diff)
downloadgo-tangerine-f59a3b67f69b26f969084e0de165435e80bd8e12.tar
go-tangerine-f59a3b67f69b26f969084e0de165435e80bd8e12.tar.gz
go-tangerine-f59a3b67f69b26f969084e0de165435e80bd8e12.tar.bz2
go-tangerine-f59a3b67f69b26f969084e0de165435e80bd8e12.tar.lz
go-tangerine-f59a3b67f69b26f969084e0de165435e80bd8e12.tar.xz
go-tangerine-f59a3b67f69b26f969084e0de165435e80bd8e12.tar.zst
go-tangerine-f59a3b67f69b26f969084e0de165435e80bd8e12.zip
StateManager => BlockManager
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/ethereum.go b/ethereum.go
index d4abeed26..54949d195 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -50,7 +50,7 @@ type Ethereum struct {
// DB interface
db ethutil.Database
// State manager for processing new blocks and managing the over all states
- stateManager *chain.StateManager
+ blockManager *chain.BlockManager
// The transaction pool. Transaction can be pushed on this pool
// for later including in the blocks
txPool *chain.TxPool
@@ -130,7 +130,7 @@ func New(db ethutil.Database, clientIdentity wire.ClientIdentity, keyManager *cr
ethereum.blockPool = NewBlockPool(ethereum)
ethereum.txPool = chain.NewTxPool(ethereum)
ethereum.blockChain = chain.NewChainManager(ethereum)
- ethereum.stateManager = chain.NewStateManager(ethereum)
+ ethereum.blockManager = chain.NewBlockManager(ethereum)
// Start the tx pool
ethereum.txPool.Start()
@@ -150,8 +150,8 @@ func (s *Ethereum) ChainManager() *chain.ChainManager {
return s.blockChain
}
-func (s *Ethereum) StateManager() *chain.StateManager {
- return s.stateManager
+func (s *Ethereum) BlockManager() *chain.BlockManager {
+ return s.blockManager
}
func (s *Ethereum) TxPool() *chain.TxPool {
@@ -392,7 +392,7 @@ func (s *Ethereum) reapDeadPeerHandler() {
// Start the ethereum
func (s *Ethereum) Start(seed bool) {
s.blockPool.Start()
- s.stateManager.Start()
+ s.blockManager.Start()
// Bind to addr and port
ln, err := net.Listen("tcp", ":"+s.Port)
@@ -516,7 +516,7 @@ func (s *Ethereum) Stop() {
s.RpcServer.Stop()
}
s.txPool.Stop()
- s.stateManager.Stop()
+ s.blockManager.Stop()
s.blockPool.Stop()
loggerger.Infoln("Server stopped")