aboutsummaryrefslogtreecommitdiffstats
path: root/miner/remote_agent.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-05-11 22:11:33 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-05-11 22:11:33 +0800
commit8e77f81586e00553362eb48f3702ea8039839c40 (patch)
tree39874e35b9dd21c38fddc28434d826ea3832961f /miner/remote_agent.go
parent5176fbc6faaa5e7f0305ad7f2b896c092781deaa (diff)
downloaddexon-8e77f81586e00553362eb48f3702ea8039839c40.tar.gz
dexon-8e77f81586e00553362eb48f3702ea8039839c40.tar.zst
dexon-8e77f81586e00553362eb48f3702ea8039839c40.zip
Return 32-byte hashes from GetWork
Ensures that the Get Work results are a consistent length. Closes #917
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
/tr> * - Update to 2016.03.20sunpoet2016-03-221-1/+1 * - Update to 2016.03.06sunpoet2016-03-081-1/+1 * - Update to 2016.01.31sunpoet2016-02-031-1/+1 * - Update to 2016.01.10sunpoet2016-01-131-1/+1 * - Update to 2015.12.27sunpoet2015-12-291-1/+1 * - Update to 2015.12.20sunpoet2015-12-221-1/+1 * - Update to 2015.12.06sunpoet2015-12-091-1/+1 * - Update to 2015.11.29sunpoet2015-12-021-1/+1 * - Update to 2015.11.22sunpoet2015-11-241-1/+1 * - Update to 2015.11.15sunpoet2015-11-201-1/+1 * - Update to 2015.11.08sunpoet2015-11-101-1/+1 * - Update to 2015.10.25sunpoet2015-10-271-1/+1 * - Update to 2015.10.18sunpoet2015-10-201-1/+1 * - Update to 2015.10.11sunpoet2015-10-161-1/+1 * - Update to 2015.10.04sunpoet2015-10-091-1/+1 * - Update to 2015.09.27sunpoet2015-10-041-1/+1 * - Update to 2015.09.20sunpoet2015-09-211-1/+1 * - Update to 2015.09.13sunpoet2015-09-151-1/+1 * - Update to 2015.09.06sunpoet2015-09-081-1/+1 * - Update to 2015.08.30sunpoet2015-08-311-1/+1 * - Update to 2015.08.23sunpoet2015-08-251-1/+1 * - Update to 2015.08.16sunpoet2015-08-191-1/+1 * - Update to 2015.08.09sunpoet2015-08-141-1/+1 * - Update to 2015.07.26sunpoet2015-07-281-1/+1 * - Update to 2015.07.19sunpoet2015-07-201-1/+1 * - Add NO_ARCHsunpoet2015-07-181-0/+1 * - Update to 2015.07.12sunpoet2015-07-141-1/+1 * - Update to 2015.07.05sunpoet2015-07-071-1/+1 * - Update to 2015.06.28sunpoet2015-07-021-1/+1 * - Update to 2015.06.21sunpoet2015-06-231-1/+1 * - Update to 2015.06.14sunpoet2015-06-151-1/+1 * - Update to 2015.06.07sunpoet2015-06-091-1/+1 * - Update to 2015.05.31sunpoet2015-06-021-1/+1 * - Update to 2015.05.17sunpoet2015-05-231-1/+1 * - Update to 2015.05.03sunpoet2015-05-051-1/+1 * - Update to 2015.04.26sunpoet2015-04-271-1/+1 * - Update to 2015.04.19sunpoet2015-04-221-1/+1 * - Update to 2015.04.05sunpoet2015-04-061-1/+1 * - Update to 2015.03.29sunpoet2015-03-301-1/+1 * - Update to 2015.03.22sunpoet2015-03-241-1/+1 * - Update to 2015.03.15sunpoet2015-03-171-1/+1 * - Update to 2015.03.08sunpoet2015-03-101-1/+1 * - Update to 2015.03.01sunpoet2015-03-031-1/+1 * - Update to 2015.02.22sunpoet2015-02-241-1/+1 * - Update to 2015.01.11sunpoet2015-01-131-1/+1 * - Update to 2015.01.04sunpoet2015-01-061-1/+1 * - Update to 2014.12.21sunpoet2014-12-241-1/+1 * cleanup plistbapt2014-12-211-1/+0 * - Update to 2014.12.07sunpoet2014-12-091-1/+1 * - Update to 2014.11.23sunpoet2014-11-251-1/+1 * - Update to 2014.10.05sunpoet2014-10-071-1/+1 * - Update to 2014.09.15sunpoet2014-09-181-1/+1 * - Update to 2014.09.01sunpoet2014-09-041-1/+1 * - Update to 2014.08.24sunpoet2014-08-271-1/+1 * - Update to 2014.08.17sunpoet2014-08-181-1/+1 * - Update to 2014.08.10sunpoet2014-08-121-1/+1 * - Update to 2014.08.03sunpoet2014-08-051-1/+1 * - Update to 2014.07.27sunpoet2014-07-281-1/+1 * - Update to 2014.07.20sunpoet2014-07-211-1/+1 * - Update to 2014.07.13sunpoet2014-07-141-1/+1 * - Update to 2014.07.06sunpoet2014-07-071-1/+1 * - Update to 2014.06.29sunpoet2014-07-041-1/+1 * - Update to 2014.06.15sunpoet2014-06-171-1/+1 * - Update to 2014.06.08sunpoet2014-06-101-1/+1 * - Update to 2014.05.25sunpoet2014-05-271-1/+1 * - Update to 2014.05.16sunpoet2014-05-201-1/+1 * - Update to 2014.05.09sunpoet2014-05-131-1/+1 * - Update to 2014.05.02sunpoet2014-05-051-1/+1 * - Update to 2014.04.27sunpoet2014-04-291-1/+1 * - Update to 2014.04.06sunpoet2014-04-071-1/+1 * - Update to 2014.03.30sunpoet2014-03-311-1/+1 * - Update to 2014.03.23sunpoet2014-03-241-1/+1 * - Update to 2014.03.16sunpoet2014-03-201-1/+1 * - Update to 2014.03.09sunpoet2014-03-111-1/+1 * Convert textproc to USES=zipbapt2014-03-111-1/+1 * - Update to 2014.03.02sunpoet2014-03-031-1/+1 * - Update to 2014.02.23sunpoet2014-02-241-1/+1 * - Update to 2014.02.16sunpoet2014-02-191-1/+1 * - Update to 2014.02.09sunpoet2014-02-111-1/+1 * - Update to 2014.02.02sunpoet2014-02-061-1/+1 * - Update to 2014.01.19sunpoet2014-01-211-1/+1 * - Update to 2014.01.05sunpoet2014-01-061-1/+1 * - Update to 2013.12.29sunpoet2013-12-301-1/+1 * - Update to 2013.12.15sunpoet2013-12-191-1/+1 * - Update to 2013.12.08sunpoet2013-12-091-1/+1 * - Update to 2013.12.01sunpoet2013-12-021-1/+1 * - Update to 2013.11.24sunpoet2013-11-251-1/+1 * - Update to 2013.11.17sunpoet2013-11-181-2/+2 * - Update to 2013.11.10sunpoet2013-11-111-1/+1 * Stagify, use bsdtar to extractbapt2013-11-041-4/+3 * - Update to 2013.11.03sunpoet2013-11-041-1/+1 * - Update to 2013.10.27sunpoet2013-10-291-1/+1 * - Update to 2013.10.20sunpoet2013-10-211-1/+1 * - Update to 2013.10.13sunpoet2013-10-141-1/+1 * - Update to 2013.10.06sunpoet2013-10-081-1/+1 * - Update to 2013.09.29sunpoet2013-09-301-1/+1 * - Update to 2013.09.22sunpoet2013-09-231-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-1/+1 * - Update to 2013.09.15sunpoet2013-09-161-1/+1 * - Update to 2013.09.08sunpoet2013-09-091-1/+1 * - Update to 2013.09.01sunpoet2013-09-021-1/+1 * - Update to 2013.08.18sunpoet2013-08-191-1/+1 * - Update to 2013.08.11sunpoet2013-08-161-1/+1 * - Update to 2013.05.05sunpoet2013-05-081-1/+1 * - Update to 2012.10.08sunpoet2012-10-091-1/+1 * - Update to 2012.10.01sunpoet2012-10-011-6/+2 * - Update to 2012.09.10sunpoet2012-09-111-1/+1 * Update to latest versionscrees2012-09-041-1/+1 * - Update to 2012.08.20sunpoet2012-08-201-1/+1 * - Update to 2012.08.13sunpoet2012-08-141-1/+1 * - Update to 2012.08.06sunpoet2012-08-071-1/+1 * - Update to 2012.07.30sunpoet2012-07-311-1/+1 * - Update to 2012.07.23sunpoet2012-07-231-1/+1 * - Update to 2012.07.16sunpoet2012-07-181-1/+1 * - Update to 2012.07.09sunpoet2012-07-091-1/+1 * - Update to 2012.07.02sunpoet2012-07-031-1/+1 * - Update to 2012.06.25sunpoet2012-06-251-1/+1 * - Update to 2012.06.18sunpoet2012-06-181-1/+1 * - Update to 2012.06.11sunpoet2012-06-111-1/+1 * - Update to 2012.06.04sunpoet2012-06-051-1/+1 * - Update to 2012.05.28sunpoet2012-05-291-1/+1 * - Update to 2012.05.21sunpoet2012-05-211-1/+1 * - Update to 2012.05.14sunpoet2012-05-151-1/+1 * - Update to 2012.05.07sunpoet2012-05-071-1/+1 * - Update to 2012.04.30sunpoet2012-04-301-1/+1 * - Update to 2012.04.23sunpoet2012-04-241-1/+1 * - Update to 2012.04.09sunpoet2012-04-101-1/+1 * - Update to 2012.04.02sunpoet2012-04-021-1/+1 * - Update to 2012.03.26sunpoet2012-03-261-1/+1 * - Update to 2012.03.12sunpoet2012-03-121-1/+1 * - Update to 2012.03.05sunpoet2012-03-051-1/+1 * - Update to 2012.02.20sunpoet2012-02-201-1/+1 * - Update to 2012.02.13sunpoet2012-02-131-1/+1 * - Update to 2012.02.06sunpoet2012-02-061-1/+1 * - Update to 2012.01.30sunpoet2012-01-301-1/+1 * - Update to 2012.01.23sunpoet2012-01-231-1/+1 * - Update to 2012.01.16sunpoet2012-01-161-1/+1 * - Update to 2012.01.09sunpoet2012-01-091-1/+1 * - Update to 2012.01.02sunpoet2012-01-021-1/+1 * - Update to 2011.12.26sunpoet2011-12-261-1/+1 * - Update to 2011.12.19sunpoet2011-12-191-1/+1 * - Update to 2011.12.12sunpoet2011-12-121-1/+1 * - Update to 2011.12.05sunpoet2011-12-051-1/+1 * - Update to 2011.11.28sunpoet2011-11-281-1/+1 * - Update to 2011.11.21sunpoet2011-11-211-1/+1 * - Update to 2011.11.14sunpoet2011-11-141-1/+1 * - Update to 2011.11.07sunpoet2011-11-071-1/+1 * - Update to 2011.10.31sunpoet2011-10-311-1/+1 * - Update to 2011.10.24sunpoet2011-10-241-1/+1 * - Update to 2011.10.17sunpoet2011-10-171-1/+1 * - Update to 2011.10.10sunpoet2011-10-101-1/+1 * - Update to 2011.10.03sunpoet2011-10-031-1/+1 * - Update to 2011.09.26sunpoet2011-09-261-1/+1 * - Update to 2011.09.19sunpoet2011-09-191-1/+1 * - Update to 2011.09.05sunpoet2011-09-051-1/+1 * - Update to 2011.08.29sunpoet2011-08-291-1/+1 * Update to 2011.08.2[34]crees2011-08-241-1/+1 * - Set DIST_SUBDIR: move dist files to DISTDIR/mythessunpoet2011-08-181-0/+1 * - Change MASTER_SITES to my LOCAL to avoid implicit change of non-versionedsunpoet2011-08-181-2/+2 * - Update to 2011.08.17sunpoet2011-08-171-1/+1 * - Update to 2011.08.16sunpoet2011-08-161-1/+1 * - Update to 2011.08.15sunpoet2011-08-151-1/+1 * - Update to 2011.08.14sunpoet2011-08-141-1/+1 * - Update to 2011.08.13sunpoet2011-08-131-1/+1 * - Update to 2011.08.12sunpoet2011-08-121-1/+1 * - Update to 2011.08.10sunpoet2011-08-101-1/+1 * - Update to 2011.08.09sunpoet2011-08-091-1/+1 * - Update to 2011.08.07sunpoet2011-08-081-1/+1 * - Update to 2011.08.02sunpoet2011-08-021-2/+1 * - Move language prefix to PKGNAMEPREFIXsunpoet2011-07-291-6/+8 * - Update to 2011.07.27sunpoet2011-07-281-4/+5 * Update to 2011.07.24bapt2011-07-251-1/+1 * Pass matainership to the new office teambapt2011-07-221-1/+1 * Add some locales thesaurusbapt2011-07-21