fix nil pointer in peer

This commit is contained in:
alex.sharov 2021-04-20 23:34:54 +07:00
parent a6fe31e1f2
commit e25b57511d

View File

@ -633,7 +633,7 @@ func (s *Ethereum) SetEtherbase(etherbase common.Address) {
// is already running, this method adjust the number of threads allowed to use
// and updates the minimum price required by the transaction pool.
func (s *Ethereum) StartMining(mining *stagedsync.StagedSync, tmpdir string) error {
if s.config.Miner.Enabled {
if !s.config.Miner.Enabled {
return nil
}