* chain.state using block.height instead of height
* define the template structure for coinbase transaction
* fix for code review, golint and elegant
* fix a acp key error
* fix for hsm_test bug
* fix bug for list account
* fix for code review
* add log info to mining
func (bcR *BlockchainReactor) OnStart() error {
bcR.BaseReactor.OnStart()
bcR.BuildHander()
+
bcR.mining.Start()
go bcR.syncRoutine()
return nil
// OnStop implements BaseService
func (bcR *BlockchainReactor) OnStop() {
bcR.BaseReactor.OnStop()
+ bcR.mining.Stop()
}
// GetChannels implements Reactor
m.quit = make(chan struct{})
m.speedMonitorQuit = make(chan struct{})
- m.wg.Add(2)
+ m.wg.Add(1)
go m.miningWorkerController()
m.started = true
+ log.Infof("CPU miner started")
}
// Stop gracefully stops the mining process by signalling all workers, and the
close(m.quit)
m.wg.Wait()
m.started = false
+ log.Info("CPU miner stopped")
}
// IsMining returns whether or not the CPU miner has been started and is