mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
miner: fixed remote miner current work
This commit is contained in:
parent
ea11dba00b
commit
2cc9211269
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue