mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
bug fix on original lyra
This commit is contained in:
parent
e59445006d
commit
22e79a5945
@ -100,7 +100,7 @@ int lyra2reold_test(unsigned char *pdata, const unsigned char *ptarget, uint32_t
|
|||||||
|
|
||||||
be32enc_vect(data, (const uint32_t *)pdata, 19);
|
be32enc_vect(data, (const uint32_t *)pdata, 19);
|
||||||
data[19] = htobe32(nonce);
|
data[19] = htobe32(nonce);
|
||||||
lyra2rehash(ohash, data);
|
lyra2rehash_old(ohash, data);
|
||||||
tmp_hash7 = be32toh(ohash[7]);
|
tmp_hash7 = be32toh(ohash[7]);
|
||||||
|
|
||||||
applog(LOG_DEBUG, "htarget %08lx diff1 %08lx hash %08lx",
|
applog(LOG_DEBUG, "htarget %08lx diff1 %08lx hash %08lx",
|
||||||
@ -122,7 +122,7 @@ void lyra2reold_regenhash(struct work *work)
|
|||||||
|
|
||||||
be32enc_vect(data, (const uint32_t *)work->data, 19);
|
be32enc_vect(data, (const uint32_t *)work->data, 19);
|
||||||
data[19] = htobe32(*nonce);
|
data[19] = htobe32(*nonce);
|
||||||
lyra2rehash(ohash, data);
|
lyra2rehash_old(ohash, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool scanhash_lyra2reold(struct thr_info *thr, const unsigned char __maybe_unused *pmidstate,
|
bool scanhash_lyra2reold(struct thr_info *thr, const unsigned char __maybe_unused *pmidstate,
|
||||||
|
Loading…
Reference in New Issue
Block a user