Removed start/stop methods

This commit is contained in:
obscuren 2014-12-10 16:48:39 +01:00
parent 1b98cbbfa4
commit af6afbaa56
2 changed files with 0 additions and 24 deletions

View File

@ -90,14 +90,6 @@ func NewBlockManager(ethereum EthManager) *BlockManager {
return sm return sm
} }
func (self *BlockManager) Start() {
statelogger.Debugln("Starting block manager")
}
func (self *BlockManager) Stop() {
statelogger.Debugln("Stopping state manager")
}
func (sm *BlockManager) CurrentState() *state.StateDB { func (sm *BlockManager) CurrentState() *state.StateDB {
return sm.eth.ChainManager().CurrentBlock.State() return sm.eth.ChainManager().CurrentBlock.State()
} }
@ -106,20 +98,6 @@ func (sm *BlockManager) TransState() *state.StateDB {
return sm.transState return sm.transState
} }
func (sm *BlockManager) MiningState() *state.StateDB {
return sm.miningState
}
func (sm *BlockManager) NewMiningState() *state.StateDB {
sm.miningState = sm.eth.ChainManager().CurrentBlock.State().Copy()
return sm.miningState
}
func (sm *BlockManager) ChainManager() *ChainManager {
return sm.bc
}
func (sm *BlockManager) TransitionState(statedb *state.StateDB, parent, block *types.Block) (receipts types.Receipts, err error) { func (sm *BlockManager) TransitionState(statedb *state.StateDB, parent, block *types.Block) (receipts types.Receipts, err error) {
coinbase := statedb.GetOrNewStateObject(block.Coinbase) coinbase := statedb.GetOrNewStateObject(block.Coinbase)
coinbase.SetGasPool(block.CalcGasLimit(parent)) coinbase.SetGasPool(block.CalcGasLimit(parent))

View File

@ -393,7 +393,6 @@ func (s *Ethereum) reapDeadPeerHandler() {
// Start the ethereum // Start the ethereum
func (s *Ethereum) Start(seed bool) { func (s *Ethereum) Start(seed bool) {
s.blockPool.Start() s.blockPool.Start()
s.blockManager.Start()
// Bind to addr and port // Bind to addr and port
ln, err := net.Listen("tcp", ":"+s.Port) ln, err := net.Listen("tcp", ":"+s.Port)
@ -517,7 +516,6 @@ func (s *Ethereum) Stop() {
s.RpcServer.Stop() s.RpcServer.Stop()
} }
s.txPool.Stop() s.txPool.Stop()
s.blockManager.Stop()
s.blockPool.Stop() s.blockPool.Stop()
loggerger.Infoln("Server stopped") loggerger.Infoln("Server stopped")