Skip to content

Commit

Permalink
Merge pull request #108 from BitMaker-hub/dev
Browse files Browse the repository at this point in the history
Release 1.6.0
  • Loading branch information
BitMaker-hub authored Jul 30, 2023
2 parents 3ab4a2f + 5930edc commit 7c3de1b
Show file tree
Hide file tree
Showing 17 changed files with 1,437 additions and 425 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Currently includes:
This miner is multicore and multithreads, one thread is used to mine and other is implementing stratum work and wifi stuff.
Every time an stratum job notification is received miner update its current work to not create stale shares.

**IMPORTANT** Miner is not seen by pools due to its low share difficulty. You can check miner work seeing logs via UART or mainly setting up your own pool with a low difficulty rate as 1e-9
**IMPORTANT** Miner is not seen by all standard pools due to its low share difficulty. You can check miner work remotely using specific pools specified down or seeing logs via UART.

***Current project is still in developement and more features will be added***

Expand Down Expand Up @@ -71,9 +71,17 @@ After programming, you will only need to setup your Wifi and BTC address.
1. Setup your Wifi Network
1. Add your BTCaddress

Optional you can select other pool:
Recommended low difficulty share pools:

| Pool URL | Port | URL |
| Pool URL | Port | Web URL | Status |
|--- |--- |--- |--- |
| public-pool.airdns.org | 21496 | https://public-pool.airdns.org:37273/ | Open Source Solo Bitcoin Mining Pool supporting open source miners |
| nerdminers.org | | https://nerdminers.org | Team domain for future pool - Currently pointing to public-pool.airdns.org |
| nerdminer.io | 3333 | https://nerdminer.io | Mantained by CHMEX |

Other standard pools not compatible with low difficulty share:

| Pool URL | Port | Web URL |
|--- |--- |--- |
| solo.ckpool.org | 3333 | https://solo.ckpool.org/ |
| btc.zsolo.bid | 6057 | https://zsolo.bid/en/btc-solo-mining-pool |
Expand Down
Binary file added bin/0x10000_firmware_v1.6.0.bin
Binary file not shown.
14 changes: 10 additions & 4 deletions src/NerdMinerV2.ino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
#include "mining.h"
#include "monitor.h"

#define CURRENT_VERSION "V1.5.2"
#define CURRENT_VERSION "V1.6.0"

//3 seconds WDT
#define WDT_TIMEOUT 3
//120 seconds WDT for miner task
#define WDT_MINER_TIMEOUT 120
OneButton button1(PIN_BUTTON_1);
OneButton button2(PIN_BUTTON_2);

Expand Down Expand Up @@ -56,6 +58,7 @@ void setup()
Serial.setTimeout(0);
delay(100);

esp_task_wdt_init(WDT_MINER_TIMEOUT, true);
// Idle task that would reset WDT never runs, because core 0 gets fully utilized
disableCore0WDT();
//disableCore1WDT();
Expand Down Expand Up @@ -137,8 +140,11 @@ void setup()

// Start mining tasks
//BaseType_t res = xTaskCreate(runWorker, name, 35000, (void*)name, 1, NULL);
xTaskCreate(runMiner, "Miner0", 15000, NULL, 1, NULL);
xTaskCreate(runMiner, "Miner1", 15000, NULL, 1, NULL);
TaskHandle_t minerTask1, minerTask2 = NULL;
xTaskCreate(runMiner, "Miner0", 15000, (void*)0, 1, &minerTask1);
xTaskCreate(runMiner, "Miner1", 15000, (void*)1, 1, &minerTask2);
esp_task_wdt_add(minerTask1);
esp_task_wdt_add(minerTask2);

/******** MONITOR SETUP *****/
setup_monitor();
Expand All @@ -164,4 +170,4 @@ void loop() {
wifiManagerProcess(); // avoid delays() in loop when non-blocking and other long running code

vTaskDelay(50 / portTICK_PERIOD_MS);
}
}
222 changes: 0 additions & 222 deletions src/ShaTests/customSHA256.cpp

This file was deleted.

Loading

0 comments on commit 7c3de1b

Please sign in to comment.