Browse Source

Add missing node method for mining.suggest_difficulty

master
Con Kolivas 9 years ago
parent
commit
7c042070cc
  1. 2
      src/ckpool.h
  2. 2
      src/stratifier.c

2
src/ckpool.h

@ -261,6 +261,7 @@ enum stratum_msgtype {
SM_TXNSRESULT, SM_TXNSRESULT,
SM_PING, SM_PING,
SM_WORKINFO, SM_WORKINFO,
SM_SUGGESTDIFF,
SM_NONE SM_NONE
}; };
@ -280,6 +281,7 @@ static const char __maybe_unused *stratum_msgs[] = {
"txns.result", "txns.result",
"ping", "ping",
"workinfo", "workinfo",
"suggestdiff",
"" ""
}; };

2
src/stratifier.c

@ -5370,6 +5370,8 @@ out:
ret = SM_AUTH; ret = SM_AUTH;
else if (cmdmatch(method, "mining.get")) else if (cmdmatch(method, "mining.get"))
ret = SM_TXNS; ret = SM_TXNS;
else if (cmdmatch(method, "mining.suggest_difficulty"))
ret = SM_SUGGESTDIFF;
} }
return ret; return ret;
} }

Loading…
Cancel
Save