diff --git a/src/ckpool.h b/src/ckpool.h index c0dad52e..f6d25dd4 100644 --- a/src/ckpool.h +++ b/src/ckpool.h @@ -261,6 +261,7 @@ enum stratum_msgtype { SM_TXNSRESULT, SM_PING, SM_WORKINFO, + SM_SUGGESTDIFF, SM_NONE }; @@ -280,6 +281,7 @@ static const char __maybe_unused *stratum_msgs[] = { "txns.result", "ping", "workinfo", + "suggestdiff", "" }; diff --git a/src/stratifier.c b/src/stratifier.c index adc66442..4cd531e3 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -5370,6 +5370,8 @@ out: ret = SM_AUTH; else if (cmdmatch(method, "mining.get")) ret = SM_TXNS; + else if (cmdmatch(method, "mining.suggest_difficulty")) + ret = SM_SUGGESTDIFF; } return ret; }