diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 16:58:47 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 16:58:47 +0800 |
commit | 37c1a8f69de44827a60296342189b6719a49dbc3 (patch) | |
tree | d889b5d451f3bfb532177a59389be40ded8cac91 /miner/miner.go | |
parent | 35cd355c14d9a5266a7d4b11127d25eb7f961494 (diff) | |
download | go-tangerine-37c1a8f69de44827a60296342189b6719a49dbc3.tar go-tangerine-37c1a8f69de44827a60296342189b6719a49dbc3.tar.gz go-tangerine-37c1a8f69de44827a60296342189b6719a49dbc3.tar.bz2 go-tangerine-37c1a8f69de44827a60296342189b6719a49dbc3.tar.lz go-tangerine-37c1a8f69de44827a60296342189b6719a49dbc3.tar.xz go-tangerine-37c1a8f69de44827a60296342189b6719a49dbc3.tar.zst go-tangerine-37c1a8f69de44827a60296342189b6719a49dbc3.zip |
eth,miner,rpc: set coinbase
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go index 7f73f3ee8..83f7c4503 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -137,3 +137,8 @@ func (self *Miner) PendingState() *state.StateDB { func (self *Miner) PendingBlock() *types.Block { return self.worker.pendingBlock() } + +func (self *Miner) SetEtherbase(addr common.Address) { + self.coinbase = addr + self.worker.setEtherbase(addr) +} |