Skip to content

Commit

Permalink
Allow extranonce of 3 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
monkins1010 authored May 27, 2023
1 parent 9f48168 commit 68cbc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ static bool stratum_parse_extranonce(struct stratum_ctx *sctx, json_t *params, i
if (strcmp(algo, "verus") == 0) {
int xn1_size = (int)strlen(xnonce1) / 2;
xn2_size = 32 - xn1_size;
if (xn1_size < 4 || xn1_size > 12) {
if (xn1_size < 3 || xn1_size > 12) {
// This miner iterates the nonces at data32[30]
applog(LOG_ERR, "Unsupported extranonce size of %d (12 maxi)", xn1_size);
goto out;
Expand Down

0 comments on commit 68cbc2b

Please sign in to comment.