diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-06 00:57:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-06 00:59:18 +0800 |
commit | 9c55576c7b415954773c062d404a736741fb9794 (patch) | |
tree | 5c79551e6ad55d88c02fbe3374ebc9738b863f8d /miner/miner.go | |
parent | 3040296beb3a8ca991b738a83df0af7bddde2ac6 (diff) | |
download | go-tangerine-9c55576c7b415954773c062d404a736741fb9794.tar go-tangerine-9c55576c7b415954773c062d404a736741fb9794.tar.gz go-tangerine-9c55576c7b415954773c062d404a736741fb9794.tar.bz2 go-tangerine-9c55576c7b415954773c062d404a736741fb9794.tar.lz go-tangerine-9c55576c7b415954773c062d404a736741fb9794.tar.xz go-tangerine-9c55576c7b415954773c062d404a736741fb9794.tar.zst go-tangerine-9c55576c7b415954773c062d404a736741fb9794.zip |
Block header changed & console miner control
* miner control moved to `admin.miner`
* miner option to set extra data
* block extra now bytes
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/miner/miner.go b/miner/miner.go index 581de9674..23e48db40 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -13,7 +13,6 @@ type Miner struct { worker *worker MinAcceptedGasPrice *big.Int - Extra string mining bool eth core.Backend @@ -58,3 +57,7 @@ func (self *Miner) Stop() { func (self *Miner) HashRate() int64 { return self.worker.HashRate() } + +func (self *Miner) SetExtra(extra []byte) { + self.worker.extra = extra +} |