aboutsummaryrefslogtreecommitdiff
path: root/miner/miner.go
diff options
context:
space:
mode:
Diffstat (limited to 'miner/miner.go')
-rw-r--r--miner/miner.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go
index b342bb8..b55d4fc 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -24,6 +24,7 @@ import (
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/consensus"
"github.com/ethereum/go-ethereum/params"
+ "github.com/ethereum/go-ethereum/common"
eminer "github.com/ethereum/go-ethereum/miner"
)
@@ -42,6 +43,10 @@ func NewWorker(config *Config, chainConfig *params.ChainConfig, engine consensus
return newWorker(config, chainConfig, engine, eth, mux, isLocalBlock)
}
+func (self *Worker) SetEtherbase(addr common.Address) {
+ self.setEtherbase(addr)
+}
+
func (self *Worker) Start() {
self.start()
}