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

Loading…
Cancel
Save