Browse Source

Unrecognised stratum messages shouldn't spew to the console in node mode

master
Con Kolivas 9 years ago
parent
commit
481208470e
  1. 6
      src/stratifier.c

6
src/stratifier.c

@ -5835,6 +5835,8 @@ out:
ret = SM_TXNS;
else if (cmdmatch(method, "mining.suggest_difficulty"))
ret = SM_SUGGESTDIFF;
else
ret = SM_NONE;
}
return ret;
}
@ -6055,6 +6057,10 @@ static void node_client_msg(ckpool_t *ckp, json_t *val, const char *buf, stratum
case SM_AUTHRESULT:
parse_authorise_result(ckp, sdata, client, res_val);
break;
case SM_NONE:
LOGNOTICE("Unrecognised method from client %"PRId64" :%s",
client->id, buf);
break;
default:
break;
}

Loading…
Cancel
Save