Skip to content

Commit fe6cf00

Browse files
stompesikaralabe
authored andcommitted
miner: remove duplicated code (#15968)
1 parent 322006d commit fe6cf00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

miner/miner.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ out:
105105

106106
func (self *Miner) Start(coinbase common.Address) {
107107
atomic.StoreInt32(&self.shouldStart, 1)
108-
self.worker.setEtherbase(coinbase)
109-
self.coinbase = coinbase
108+
self.SetEtherbase(coinbase)
110109

111110
if atomic.LoadInt32(&self.canStart) == 0 {
112111
log.Info("Network syncing, will start miner afterwards")

0 commit comments

Comments
 (0)