aboutsummaryrefslogtreecommitdiffstats
path: root/miner/remote_agent.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-06-30 08:22:19 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-06-30 08:22:19 +0800
commit7625b07dd9a2a7b5c5a504c1276eea04596ac871 (patch)
treece2a757cd4e0591fc15815b2dfae528ae517d36e /miner/remote_agent.go
parent72e2613a9fe3205fa5a67b72b832e03b2357ee88 (diff)
parent8f504063f465e0ca10c6bb53ee914d10a3d45c86 (diff)
downloadgo-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar
go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.gz
go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.bz2
go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.lz
go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.xz
go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.tar.zst
go-tangerine-7625b07dd9a2a7b5c5a504c1276eea04596ac871.zip
Merge branch 'release/0.9.34'v0.9.34
Diffstat (limited to 'miner/remote_agent.go')
-rw-r--r--miner/remote_agent.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/miner/remote_agent.go b/miner/remote_agent.go
index 80cc9053e..6a44782f6 100644
--- a/miner/remote_agent.go
+++ b/miner/remote_agent.go
@@ -81,9 +81,7 @@ func (a *RemoteAgent) SubmitWork(nonce uint64, mixDigest, seedHash common.Hash)
// Make sure the external miner was working on the right hash
if a.currentWork != nil && a.work != nil {
- a.currentWork.SetNonce(nonce)
- a.currentWork.Header().MixDigest = mixDigest
- a.returnCh <- a.currentWork
+ a.returnCh <- a.currentWork.WithMiningResult(nonce, mixDigest)
//a.returnCh <- Work{a.currentWork.Number().Uint64(), nonce, mixDigest.Bytes(), seedHash.Bytes()}
return true
}