|
|
@ -1279,13 +1279,14 @@ static int send_recv_auth(stratum_instance_t *client) |
|
|
|
ts_realtime(&now); |
|
|
|
ts_realtime(&now); |
|
|
|
sprintf(cdfield, "%lu,%lu", now.tv_sec, now.tv_nsec); |
|
|
|
sprintf(cdfield, "%lu,%lu", now.tv_sec, now.tv_nsec); |
|
|
|
|
|
|
|
|
|
|
|
val = json_pack("{ss,ss,ss,ss,sI,ss,ss,ss,ss,ss}", |
|
|
|
val = json_pack("{ss,ss,ss,ss,sI,ss,sb,ss,ss,ss,ss}", |
|
|
|
"username", client->user_instance->username, |
|
|
|
"username", client->user_instance->username, |
|
|
|
"workername", client->workername, |
|
|
|
"workername", client->workername, |
|
|
|
"poolinstance", ckp->name, |
|
|
|
"poolinstance", ckp->name, |
|
|
|
"useragent", client->useragent, |
|
|
|
"useragent", client->useragent, |
|
|
|
"clientid", client->id, |
|
|
|
"clientid", client->id, |
|
|
|
"enonce1", client->enonce1, |
|
|
|
"enonce1", client->enonce1, |
|
|
|
|
|
|
|
"preauth", false, |
|
|
|
"createdate", cdfield, |
|
|
|
"createdate", cdfield, |
|
|
|
"createby", "code", |
|
|
|
"createby", "code", |
|
|
|
"createcode", __func__, |
|
|
|
"createcode", __func__, |
|
|
@ -1331,13 +1332,14 @@ static void queue_delayed_auth(stratum_instance_t *client) |
|
|
|
ts_realtime(&now); |
|
|
|
ts_realtime(&now); |
|
|
|
sprintf(cdfield, "%lu,%lu", now.tv_sec, now.tv_nsec); |
|
|
|
sprintf(cdfield, "%lu,%lu", now.tv_sec, now.tv_nsec); |
|
|
|
|
|
|
|
|
|
|
|
val = json_pack("{ss,ss,ss,ss,sI,ss,ss,ss,ss,ss}", |
|
|
|
val = json_pack("{ss,ss,ss,ss,sI,ss,sb,ss,ss,ss,ss}", |
|
|
|
"username", client->user_instance->username, |
|
|
|
"username", client->user_instance->username, |
|
|
|
"workername", client->workername, |
|
|
|
"workername", client->workername, |
|
|
|
"poolinstance", ckp->name, |
|
|
|
"poolinstance", ckp->name, |
|
|
|
"useragent", client->useragent, |
|
|
|
"useragent", client->useragent, |
|
|
|
"clientid", client->id, |
|
|
|
"clientid", client->id, |
|
|
|
"enonce1", client->enonce1, |
|
|
|
"enonce1", client->enonce1, |
|
|
|
|
|
|
|
"preauth", true, |
|
|
|
"createdate", cdfield, |
|
|
|
"createdate", cdfield, |
|
|
|
"createby", "code", |
|
|
|
"createby", "code", |
|
|
|
"createcode", __func__, |
|
|
|
"createcode", __func__, |
|
|
|