eth,miner,rpc: set coinbase

This commit is contained in:
Jeffrey Wilcke
2015-07-07 10:58:47 +02:00
parent 35cd355c14
commit 37c1a8f69d
4 changed files with 13 additions and 1 deletions

View File

@ -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()