aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-14 23:37:57 +0800
committerobscuren <geffobscura@gmail.com>2015-03-14 23:37:57 +0800
commit387f6bba3e221dac6f9884b3f9aba98d6b8591cf (patch)
tree0d6b19c76dbde906d10cd6d9f66add1cba161be4 /miner/worker.go
parent44636e5b824514f90e8fefdedf3ab6bcd2cf287a (diff)
downloaddexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar.gz
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.tar.zst
dexon-387f6bba3e221dac6f9884b3f9aba98d6b8591cf.zip
POW fixes
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 7ef113fd4..5c4a13698 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -7,7 +7,6 @@ import (
"sync"
"time"
- "github.com/ethereum/ethash"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethutil"
@@ -154,7 +153,6 @@ func (self *worker) wait() {
if block.Number().Uint64() == work.Number && block.Nonce() == 0 {
self.current.block.SetNonce(work.Nonce)
self.current.block.Header().MixDigest = work.MixDigest
- self.current.block.Header().SeedHash = work.SeedHash
jsonlogger.LogJson(&logger.EthMinerNewBlock{
BlockHash: ethutil.Bytes2Hex(block.Hash()),
@@ -191,8 +189,6 @@ func (self *worker) commitNewWork() {
defer self.mu.Unlock()
block := self.chain.NewBlock(self.coinbase)
- seednum := ethash.GetSeedBlockNum(block.NumberU64())
- block.Header().SeedHash = self.chain.GetBlockByNumber(seednum).SeedHash()
self.current = env(block, self.eth)
parent := self.chain.GetBlock(self.current.block.ParentHash())