From 387f6bba3e221dac6f9884b3f9aba98d6b8591cf Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 14 Mar 2015 16:37:57 +0100 Subject: POW fixes --- miner/worker.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'miner/worker.go') 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()) -- cgit v1.2.3