1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 01:44:23 +00:00

some cleanup

This commit is contained in:
orignal 2017-10-19 15:34:58 -04:00
parent 495d776a25
commit 87568c5acf

View File

@ -9,10 +9,7 @@
void gostcoin_regenhash(struct work *work)
{
uint32_t data[20];
uint32_t *nonce = (uint32_t *)(work->data + 76);
be32enc_vect(data, (const uint32_t *)work->data, 19);
data[19] = htobe32(*nonce);
be32enc_vect(data, (const uint32_t *)work->data, 20);
unsigned char h1[64], h2[32];
sph_gost512(h1, (const void*)data, 80);