mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
fix minor issue with a7fb6332c9
This commit is contained in:
parent
5d122b8827
commit
ea4bebb844
1 changed files with 6 additions and 3 deletions
|
@ -3087,9 +3087,9 @@ miner_on_submit(json_object *message, client_t *client)
|
||||||
unsigned char submitted_hash[32] = {0};
|
unsigned char submitted_hash[32] = {0};
|
||||||
uint8_t major_version = (uint8_t)block[0];
|
uint8_t major_version = (uint8_t)block[0];
|
||||||
uint8_t pow_variant = major_version >= 7 ? major_version - 6 : 0;
|
uint8_t pow_variant = major_version >= 7 ? major_version - 6 : 0;
|
||||||
BIGNUM *hd = BN_new();
|
BIGNUM *hd = NULL;
|
||||||
BIGNUM *jd = BN_new();
|
BIGNUM *jd = NULL;
|
||||||
BIGNUM *bd = BN_new();
|
BIGNUM *bd = NULL;
|
||||||
BIGNUM *rh = NULL;
|
BIGNUM *rh = NULL;
|
||||||
hex_to_bin(result_hex, 64, submitted_hash, 32);
|
hex_to_bin(result_hex, 64, submitted_hash, 32);
|
||||||
|
|
||||||
|
@ -3125,6 +3125,9 @@ miner_on_submit(json_object *message, client_t *client)
|
||||||
}
|
}
|
||||||
|
|
||||||
post_hash:
|
post_hash:
|
||||||
|
hd = BN_new();
|
||||||
|
jd = BN_new();
|
||||||
|
bd = BN_new();
|
||||||
BN_set_word(jd, job->target);
|
BN_set_word(jd, job->target);
|
||||||
BN_set_word(bd, bt->difficulty);
|
BN_set_word(bd, bt->difficulty);
|
||||||
reverse_bin(result_hash, 32);
|
reverse_bin(result_hash, 32);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue