Merge pull request #85 from golden-guy/dev

Fix mining submit code
This commit is contained in:
BitMaker 2023-07-10 22:32:27 +02:00 committed by GitHub
commit d726d8e402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,11 +204,10 @@ bool tx_mining_submit(WiFiClient& client, mining_subscribe mWorker, mining_job m
sprintf(payload, "{\"id\": %u, \"method\": \"mining.submit\", \"params\": [\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"]}\n",
id,
mWorker.wName,//"bc1qvv469gmw4zz6qa4u4dsezvrlmqcqszwyfzhgwj", //mWorker.name,
mJob.job_id,
mWorker.extranonce2,
mJob.ntime,
String(nonce, HEX),
id
mJob.job_id.c_str(),
mWorker.extranonce2.c_str(),
mJob.ntime.c_str(),
String(nonce, HEX).c_str()
);
Serial.print(" Sending : "); Serial.print(payload);
client.print(payload);