minor changes +readme update
This commit is contained in:
parent
cbed1a1f5f
commit
ff3cd7925a
@ -76,10 +76,14 @@ Optional you can select other pool:
|
||||
- [x] Bug memory leaks
|
||||
- [x] Bug Reboots when received JSON contains some null values
|
||||
- [x] Implement midstate sha256
|
||||
- [x] Bug Wificlient DNS unresolved on Wifi.h
|
||||
- [ ] Code refactoring
|
||||
- [ ] Add blockHeight to screen
|
||||
- [ ] Add clock to show current time
|
||||
- [ ] Add new screen with global mining stats
|
||||
- [ ] Add support to control BM1397
|
||||
|
||||
### Donations/Project contributions
|
||||
If you would like to contribute and help dev team with this project you can send a donation to the following LN address ⚡teamnerdminer@getalby.com⚡
|
||||
|
||||
Enjoy
|
@ -527,28 +527,6 @@ void runWorker(void *name) {
|
||||
// TODO Pending doub
|
||||
if(hashes>=MAX_NONCE) { Mhashes=Mhashes+MAX_NONCE/1000000; hashes=hashes-MAX_NONCE;}
|
||||
|
||||
if (nonce == TARGET_NONCE) {
|
||||
Serial.printf("[WORKER] %s SUBMITING WORK... MAX Nonce reached > MAX_NONCE\n", (char *)name);
|
||||
// STEP 3: Submit mining job
|
||||
id = getNextId(id);
|
||||
if (client.connect(poolString, portNumber)) {
|
||||
sprintf(payload, "{\"params\": [\"%s\",\"%s\",\"%s\",\"%s\",\"%s\"], \"id\": %u, \"method\": \"mining.submit\"}",
|
||||
btcString,
|
||||
job_id,
|
||||
extranonce2,
|
||||
ntime,
|
||||
String(nonce, HEX),
|
||||
id
|
||||
);
|
||||
Serial.print(" Sending : "); Serial.println(payload);
|
||||
client.print(payload);
|
||||
unsigned long timeout = millis();
|
||||
Serial.print(" Receiving: "); Serial.println(client.readString());
|
||||
Serial.printf("[WORKER] %s SUBMITED WORK\n", (char *)name);
|
||||
client.stop();
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t duration = micros() - startT;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user