aboutsummaryrefslogtreecommitdiffstats
path: root/miner/remote_agent.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-13 01:05:33 +0800
committerobscuren <geffobscura@gmail.com>2015-05-13 01:05:33 +0800
commit8e24378cc1acb074b56de75bf0baf6feb7927677 (patch)
tree71f866652de6b45da5ad4403b88f5def9a684e36 /miner/remote_agent.go
parent7d69679935ff8c04aebb60f27074f08c5e84ac95 (diff)
parent8fe01b4bfa28ad5a1fdde7f9837e8f982843389a (diff)
downloadgo-tangerine-8e24378cc1acb074b56de75bf0baf6feb7927677.tar
go-tangerine-8e24378cc1acb074b56de75bf0baf6feb7927677.tar.gz
go-tangerine-8e24378cc1acb074b56de75bf0baf6feb7927677.tar.bz2
go-tangerine-8e24378cc1acb074b56de75bf0baf6feb7927677.tar.lz
go-tangerine-8e24378cc1acb074b56de75bf0baf6feb7927677.tar.xz
go-tangerine-8e24378cc1acb074b56de75bf0baf6feb7927677.tar.zst
go-tangerine-8e24378cc1acb074b56de75bf0baf6feb7927677.zip
Merge branch 'release/0.9.20'v0.9.20
Diffstat (limited to 'miner/remote_agent.go')
-rw-r--r--miner/remote_agent.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/miner/remote_agent.go b/miner/remote_agent.go
index 87456cfec..80cc9053e 100644
--- a/miner/remote_agent.go
+++ b/miner/remote_agent.go
@@ -64,13 +64,13 @@ func (a *RemoteAgent) GetWork() [3]string {
res[0] = a.work.HashNoNonce().Hex()
seedHash, _ := ethash.GetSeedHash(a.currentWork.NumberU64())
- res[1] = common.Bytes2Hex(seedHash)
+ res[1] = common.BytesToHash(seedHash).Hex()
// Calculate the "target" to be returned to the external miner
n := big.NewInt(1)
n.Lsh(n, 255)
n.Div(n, a.work.Difficulty())
n.Lsh(n, 1)
- res[2] = common.Bytes2Hex(n.Bytes())
+ res[2] = common.BytesToHash(n.Bytes()).Hex()
}
return res