aboutsummaryrefslogtreecommitdiff
path: root/miner/miner.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-08-12 00:00:20 -0400
committerDeterminant <[email protected]>2019-08-12 00:00:20 -0400
commit068cb794976da713fb4671e1bb4e4657d3dcc2b3 (patch)
tree59a869bc21de8d7cba654ad7161ea5495c1eafe7 /miner/miner.go
parent4c1616a746a648c816042f596eb199174a9858f1 (diff)
...
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()
}