aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorVitalik Buterin <v@buterin.com>2015-05-16 09:23:09 +0800
committerobscuren <geffobscura@gmail.com>2015-05-16 18:56:06 +0800
commitfe64a13cea19556658971189024b5df98b45d4b7 (patch)
treec8c50ca37f8be91a3a7e536c6e986bafb6208b92 /miner
parent741fa8ca9cf5981805af16d5d9fc9adc31400320 (diff)
downloaddexon-fe64a13cea19556658971189024b5df98b45d4b7.tar
dexon-fe64a13cea19556658971189024b5df98b45d4b7.tar.gz
dexon-fe64a13cea19556658971189024b5df98b45d4b7.tar.bz2
dexon-fe64a13cea19556658971189024b5df98b45d4b7.tar.lz
dexon-fe64a13cea19556658971189024b5df98b45d4b7.tar.xz
dexon-fe64a13cea19556658971189024b5df98b45d4b7.tar.zst
dexon-fe64a13cea19556658971189024b5df98b45d4b7.zip
Adjust miner coinbase and not just miner worker coinbase
Diffstat (limited to 'miner')
-rw-r--r--miner/miner.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go
index 19d39a605..3f87e8151 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -75,6 +75,7 @@ func (self *Miner) Start(coinbase common.Address, threads int) {
atomic.StoreInt32(&self.shouldStart, 1)
self.threads = threads
self.worker.coinbase = coinbase
+ self.coinbase = coinbase
if atomic.LoadInt32(&self.canStart) == 0 {
glog.V(logger.Info).Infoln("Can not start mining operation due to network sync (starts when finished)")