Browse Source

some cleanup

pull/1/head
orignal 7 years ago
parent
commit
87568c5acf
  1. 5
      algorithm/gostcoin.c

5
algorithm/gostcoin.c

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

Loading…
Cancel
Save