mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Fix tabs
This commit is contained in:
parent
37b017fda4
commit
625e7a64c9
12
main.c
12
main.c
@ -2008,14 +2008,14 @@ void clear_logwin(void)
|
|||||||
/* regenerate the full work->hash value */
|
/* regenerate the full work->hash value */
|
||||||
void regeneratehash(const struct work *work)
|
void regeneratehash(const struct work *work)
|
||||||
{
|
{
|
||||||
uint32_t *data32 = (uint32_t *)(work->data);
|
uint32_t *data32 = (uint32_t *)(work->data);
|
||||||
unsigned char swap[128];
|
unsigned char swap[128];
|
||||||
uint32_t *swap32 = (uint32_t *)swap;
|
uint32_t *swap32 = (uint32_t *)swap;
|
||||||
unsigned char hash1[SHA256_DIGEST_LENGTH];
|
unsigned char hash1[SHA256_DIGEST_LENGTH];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < 80/4; i++)
|
for (i = 0; i < 80/4; i++)
|
||||||
swap32[i] = swab32(data32[i]);
|
swap32[i] = swab32(data32[i]);
|
||||||
|
|
||||||
SHA256(swap, 80, hash1);
|
SHA256(swap, 80, hash1);
|
||||||
SHA256(hash1, SHA256_DIGEST_LENGTH, (unsigned char *)(work->hash));
|
SHA256(hash1, SHA256_DIGEST_LENGTH, (unsigned char *)(work->hash));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user