diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-20 03:58:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-20 03:58:58 +0800 |
commit | 2cc92112699be80d9be08a1de288fb479cdf391e (patch) | |
tree | 1727c8e4509d0193cdda5f85f2c457f348698122 /miner | |
parent | ea11dba00b0f387f4083eef5ab3eeee396953830 (diff) | |
download | dexon-2cc92112699be80d9be08a1de288fb479cdf391e.tar dexon-2cc92112699be80d9be08a1de288fb479cdf391e.tar.gz dexon-2cc92112699be80d9be08a1de288fb479cdf391e.tar.bz2 dexon-2cc92112699be80d9be08a1de288fb479cdf391e.tar.lz dexon-2cc92112699be80d9be08a1de288fb479cdf391e.tar.xz dexon-2cc92112699be80d9be08a1de288fb479cdf391e.tar.zst dexon-2cc92112699be80d9be08a1de288fb479cdf391e.zip |
miner: fixed remote miner current work
Diffstat (limited to 'miner')
-rw-r--r-- | miner/remote_agent.go | 3 |
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) |