backend: start miner in its go routine (no wait to generate DAG)
This commit is contained in:
parent
6512b23b98
commit
be843959cb
@ -322,10 +322,9 @@ func (s *Ethereum) StartMining() error {
|
|||||||
err = fmt.Errorf("Cannot start mining without etherbase address: %v", err)
|
err = fmt.Errorf("Cannot start mining without etherbase address: %v", err)
|
||||||
glog.V(logger.Error).Infoln(err)
|
glog.V(logger.Error).Infoln(err)
|
||||||
return err
|
return err
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
s.miner.Start(eb)
|
go s.miner.Start(eb)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user