Block header changed & console miner control

* miner control moved to `admin.miner`
* miner option to set extra data
* block extra now bytes
This commit is contained in:
obscuren
2015-04-05 18:57:03 +02:00
parent 3040296beb
commit 9c55576c7b
8 changed files with 41 additions and 14 deletions

View File

@ -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
}