From 7c042070cce14351bd048d78704c8eb823402aa6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 5 Jan 2016 13:46:11 +1100 Subject: [PATCH] Add missing node method for mining.suggest_difficulty --- src/ckpool.h | 2 ++ src/stratifier.c | 2 ++ 2 files changed, 4 insertions(+) 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; }