diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-05 17:57:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-05 17:57:32 +0800 |
commit | 6c6e8b0fd7415a43c67699f145e76daff959d745 (patch) | |
tree | 2492492d25af14d606d3bc6e53fe0390e6af61a1 /ethereum.go | |
parent | 79320e2868f222cd71f0a705837637e198646ecd (diff) | |
download | go-tangerine-6c6e8b0fd7415a43c67699f145e76daff959d745.tar.gz go-tangerine-6c6e8b0fd7415a43c67699f145e76daff959d745.tar.zst go-tangerine-6c6e8b0fd7415a43c67699f145e76daff959d745.zip |
Renamed block manager to state manager
Diffstat (limited to 'ethereum.go')
-rw-r--r-- | ethereum.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ethereum.go b/ethereum.go index 2c8b2cceb..342f4f573 100644 --- a/ethereum.go +++ b/ethereum.go @@ -36,8 +36,8 @@ type Ethereum struct { // DB interface //db *ethdb.LDBDatabase db ethutil.Database - // Block manager for processing new blocks and managing the block chain - blockManager *ethchain.BlockManager + // State manager for processing new blocks and managing the over all states + stateManager *ethchain.StateManager // The transaction pool. Transaction can be pushed on this pool // for later including in the blocks txPool *ethchain.TxPool @@ -91,7 +91,7 @@ func New(caps Caps, usePnp bool) (*Ethereum, error) { } ethereum.txPool = ethchain.NewTxPool(ethereum) ethereum.blockChain = ethchain.NewBlockChain(ethereum) - ethereum.blockManager = ethchain.NewBlockManager(ethereum) + ethereum.stateManager = ethchain.NewStateManager(ethereum) // Start the tx pool ethereum.txPool.Start() @@ -103,8 +103,8 @@ func (s *Ethereum) BlockChain() *ethchain.BlockChain { return s.blockChain } -func (s *Ethereum) StateManager() *ethchain.BlockManager { - return s.blockManager +func (s *Ethereum) StateManager() *ethchain.StateManager { + return s.stateManager } func (s *Ethereum) TxPool() *ethchain.TxPool { @@ -304,7 +304,7 @@ func (s *Ethereum) Stop() { close(s.quit) s.txPool.Stop() - s.blockManager.Stop() + s.stateManager.Stop() close(s.shutdownChan) } |