Skip to content

Commit 2cc9211

Browse files
committed
miner: fixed remote miner current work
1 parent ea11dba commit 2cc9211

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎miner/remote_agent.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ out:
5050
break out
5151
case work := <-a.workCh:
5252
a.work = work
53-
a.returnCh <- nil
5453
}
5554
}
5655
}
@@ -60,6 +59,8 @@ func (a *RemoteAgent) GetWork() [3]string {
6059

6160
// XXX Wait here until work != nil ?
6261
if a.work != nil {
62+
a.currentWork = a.work
63+
6364
res[0] = a.work.HashNoNonce().Hex()
6465
seedHash, _ := ethash.GetSeedHash(a.currentWork.NumberU64())
6566
res[1] = common.Bytes2Hex(seedHash)

0 commit comments

Comments
 (0)