mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix[GLIT-67]: no need to pass etherbase to start the miner
This commit is contained in:
parent
b497167264
commit
32913c5aed
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue