Restored compatibility with https://stellite.hashvault.pro.
This commit is contained in:
parent
d696daf5af
commit
118e547175
3 changed files with 7 additions and 3 deletions
|
@ -342,7 +342,8 @@ bool Client::parseJob(const rapidjson::Value ¶ms, int *code)
|
|||
if (params.HasMember("algo")) {
|
||||
job.setAlgorithm(params["algo"].GetString());
|
||||
}
|
||||
else if (params.HasMember("variant")) {
|
||||
|
||||
if (params.HasMember("variant")) {
|
||||
const rapidjson::Value &variant = params["variant"];
|
||||
|
||||
if (variant.IsInt()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue