From 87568c5acf519744f08237f952c9a2aac2c4c4b1 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 19 Oct 2017 15:34:58 -0400 Subject: [PATCH] some cleanup --- algorithm/gostcoin.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/algorithm/gostcoin.c b/algorithm/gostcoin.c index 4485d4d5..ee9255e5 100644 --- a/algorithm/gostcoin.c +++ b/algorithm/gostcoin.c @@ -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);