aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 04:48:05 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 04:48:05 +0800
commitd4d505c868fcd0f692ec3573bd6cfcb1c5230fe2 (patch)
treee4054e8c8b26f388d3455c2890a36b9834cbdeab /miner
parent08fd0715f9504edcc81029ffebee794b06fe4653 (diff)
downloaddexon-d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2.tar
dexon-d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2.tar.gz
dexon-d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2.tar.bz2
dexon-d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2.tar.lz
dexon-d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2.tar.xz
dexon-d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2.tar.zst
dexon-d4d505c868fcd0f692ec3573bd6cfcb1c5230fe2.zip
Fixed genesis
Diffstat (limited to 'miner')
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 8904c9973..38fc81ea5 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -151,7 +151,7 @@ func (self *worker) wait() {
// Someone Successfully Mined!
block := self.current.block
if block.Number().Uint64() == work.Number && block.Nonce() == 0 {
- self.current.block.Header().Nonce = work.Nonce
+ self.current.block.SetNonce(work.Nonce)
self.current.block.Header().MixDigest = work.MixDigest
self.current.block.Header().SeedHash = work.SeedHash