diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-06 07:19:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-06 07:19:07 +0800 |
commit | 47e6b2cef8ee0164e82d119c6a9359b55259d645 (patch) | |
tree | 346912a0c62553b9421acf12dcce14cef4fb498f /miner | |
parent | cc7f8f58e81b3607d5a003fe7789dadb7a99fe54 (diff) | |
download | dexon-47e6b2cef8ee0164e82d119c6a9359b55259d645.tar.gz dexon-47e6b2cef8ee0164e82d119c6a9359b55259d645.tar.zst dexon-47e6b2cef8ee0164e82d119c6a9359b55259d645.zip |
Allow extra to be set for mined blocks
Diffstat (limited to 'miner')
-rw-r--r-- | miner/miner.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go index 949227d98..f80ae51c6 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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 { |