Allow extra to be set for mined blocks

This commit is contained in:
obscuren
2015-01-06 00:19:07 +01:00
parent cc7f8f58e8
commit 47e6b2cef8
3 changed files with 25 additions and 0 deletions

View File

@ -69,6 +69,7 @@ type Miner struct {
mining bool
MinAcceptedGasPrice *big.Int
Extra string
}
func New(coinbase []byte, eth *eth.Ethereum) *Miner {
@ -178,6 +179,7 @@ func (self *Miner) mine() {
chainMan = self.eth.ChainManager()
block = chainMan.NewBlock(self.Coinbase)
)
block.Header().Extra = self.Extra
// Apply uncles
if len(self.uncles) > 0 {