good morning!!!!

Skip to content
Snippets Groups Projects
Commit 2cc92112 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

miner: fixed remote miner current work

parent ea11dba0
Branches
Tags
No related merge requests found
...@@ -50,7 +50,6 @@ out: ...@@ -50,7 +50,6 @@ out:
break out break out
case work := <-a.workCh: case work := <-a.workCh:
a.work = work a.work = work
a.returnCh <- nil
} }
} }
} }
...@@ -60,6 +59,8 @@ func (a *RemoteAgent) GetWork() [3]string { ...@@ -60,6 +59,8 @@ func (a *RemoteAgent) GetWork() [3]string {
// XXX Wait here until work != nil ? // XXX Wait here until work != nil ?
if a.work != nil { if a.work != nil {
a.currentWork = a.work
res[0] = a.work.HashNoNonce().Hex() res[0] = a.work.HashNoNonce().Hex()
seedHash, _ := ethash.GetSeedHash(a.currentWork.NumberU64()) seedHash, _ := ethash.GetSeedHash(a.currentWork.NumberU64())
res[1] = common.Bytes2Hex(seedHash) res[1] = common.Bytes2Hex(seedHash)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment