Add missing node method for mining.suggest_difficulty
This commit is contained in:
parent
225ea83e33
commit
7c042070cc
@ -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",
|
||||
""
|
||||
};
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user