aboutsummaryrefslogtreecommitdiffstats
path: root/miner/remote_agent.go
diff options
context:
space:
mode:
Diffstat (limited to 'miner/remote_agent.go')
-rw-r--r--miner/remote_agent.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/miner/remote_agent.go b/miner/remote_agent.go
index aa04a58aa..1482f4c0f 100644
--- a/miner/remote_agent.go
+++ b/miner/remote_agent.go
@@ -50,7 +50,6 @@ out:
break out
case work := <-a.workCh:
a.work = work
- a.returnCh <- nil
}
}
}
@@ -60,6 +59,8 @@ func (a *RemoteAgent) GetWork() [3]string {
// XXX Wait here until work != nil ?
if a.work != nil {
+ a.currentWork = a.work
+
res[0] = a.work.HashNoNonce().Hex()
seedHash, _ := ethash.GetSeedHash(a.currentWork.NumberU64())
res[1] = common.Bytes2Hex(seedHash)