aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-20 03:58:58 +0800
committerobscuren <geffobscura@gmail.com>2015-04-20 03:58:58 +0800
commit2cc92112699be80d9be08a1de288fb479cdf391e (patch)
tree1727c8e4509d0193cdda5f85f2c457f348698122 /miner
parentea11dba00b0f387f4083eef5ab3eeee396953830 (diff)
downloadgo-tangerine-2cc92112699be80d9be08a1de288fb479cdf391e.tar
go-tangerine-2cc92112699be80d9be08a1de288fb479cdf391e.tar.gz
go-tangerine-2cc92112699be80d9be08a1de288fb479cdf391e.tar.bz2
go-tangerine-2cc92112699be80d9be08a1de288fb479cdf391e.tar.lz
go-tangerine-2cc92112699be80d9be08a1de288fb479cdf391e.tar.xz
go-tangerine-2cc92112699be80d9be08a1de288fb479cdf391e.tar.zst
go-tangerine-2cc92112699be80d9be08a1de288fb479cdf391e.zip
miner: fixed remote miner current work
Diffstat (limited to 'miner')
-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)