aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-07 17:55:33 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-07 17:55:33 +0800
commite5fba8fd7025bb45a88a19c1bbef80db5bd3b688 (patch)
treeb17726c936fcb695e26b2a145b5d423b8556871b /miner/worker.go
parent916d1554675974adb92af4046e1b04ad3b26dca3 (diff)
parent37c1a8f69de44827a60296342189b6719a49dbc3 (diff)
downloadgo-tangerine-e5fba8fd7025bb45a88a19c1bbef80db5bd3b688.tar
go-tangerine-e5fba8fd7025bb45a88a19c1bbef80db5bd3b688.tar.gz
go-tangerine-e5fba8fd7025bb45a88a19c1bbef80db5bd3b688.tar.bz2
go-tangerine-e5fba8fd7025bb45a88a19c1bbef80db5bd3b688.tar.lz
go-tangerine-e5fba8fd7025bb45a88a19c1bbef80db5bd3b688.tar.xz
go-tangerine-e5fba8fd7025bb45a88a19c1bbef80db5bd3b688.tar.zst
go-tangerine-e5fba8fd7025bb45a88a19c1bbef80db5bd3b688.zip
Merge pull request #1428 from obscuren/coinbase-fixes
cmd,eth,rpc,tests: default coinbase
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 840609721..7be41118c 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -124,6 +124,12 @@ func newWorker(coinbase common.Address, eth core.Backend) *worker {
return worker
}
+func (self *worker) setEtherbase(addr common.Address) {
+ self.mu.Lock()
+ defer self.mu.Unlock()
+ self.coinbase = addr
+}
+
func (self *worker) pendingState() *state.StateDB {
self.currentMu.Lock()
defer self.currentMu.Unlock()