fix[GLIT-67]: no need to pass etherbase to start the miner

This commit is contained in:
George Qing 2024-01-24 12:48:26 +08:00
parent b497167264
commit 32913c5aed

View file

@ -459,11 +459,11 @@ func (s *Ethereum) InitMiner() (eb common.Address, err error) {
func (s *Ethereum) StartMining() error {
// If the miner was not running, initialize it
if !s.IsMining() {
eb, err := s.InitMiner()
_, err := s.InitMiner()
if err != nil {
return err
}
go s.miner.Start(eb)
go s.miner.Start()
}
return nil
}