aboutsummaryrefslogtreecommitdiffstats
path: root/miner/miner.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-06 07:19:07 +0800
committerobscuren <geffobscura@gmail.com>2015-01-06 07:19:07 +0800
commit47e6b2cef8ee0164e82d119c6a9359b55259d645 (patch)
tree346912a0c62553b9421acf12dcce14cef4fb498f /miner/miner.go
parentcc7f8f58e81b3607d5a003fe7789dadb7a99fe54 (diff)
downloadgo-tangerine-47e6b2cef8ee0164e82d119c6a9359b55259d645.tar.gz
go-tangerine-47e6b2cef8ee0164e82d119c6a9359b55259d645.tar.zst
go-tangerine-47e6b2cef8ee0164e82d119c6a9359b55259d645.zip
Allow extra to be set for mined blocks
Diffstat (limited to 'miner/miner.go')
-rw-r--r--miner/miner.go2
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 {