From ff3cd7925a9ce15d983c56eccd30df0dff862cc9 Mon Sep 17 00:00:00 2001 From: BitMaker Date: Sat, 6 May 2023 00:46:16 +0200 Subject: [PATCH] minor changes +readme update --- README.md | 4 ++++ src/mining.cpp | 22 ---------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 52a6ae4..99695ea 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file diff --git a/src/mining.cpp b/src/mining.cpp index 2dcb00c..baaa10c 100644 --- a/src/mining.cpp +++ b/src/mining.cpp @@ -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; }