Release 1.2
- Changed sha libs upgraded hashrate to 26khs
This commit is contained in:
parent
4e40baf450
commit
360fb29df8
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.pio
|
.pio
|
||||||
.vscode
|
.vscode
|
||||||
|
NerdMinerLog.txt
|
||||||
|
BIN
NerdMinerLog.txt
BIN
NerdMinerLog.txt
Binary file not shown.
Binary file not shown.
@ -1,6 +0,0 @@
|
|||||||
# Name, Type, SubType, Offset, Size, Flags
|
|
||||||
nvs, data, nvs, 0x9000, 0x5000,
|
|
||||||
otadata, data, ota, 0xe000, 0x2000,
|
|
||||||
app0, app, ota_0, 0x10000, 0x300000,
|
|
||||||
spiffs, data, spiffs, 0x310000,0xE0000,
|
|
||||||
coredump, data, coredump,0x3F0000,0x10000,
|
|
|
@ -15,7 +15,9 @@ globallib_dir = lib
|
|||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = esp32-s3-devkitc-1
|
board = esp32-s3-devkitc-1
|
||||||
framework = arduino
|
framework = arduino
|
||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters =
|
||||||
|
esp32_exception_decoder
|
||||||
|
time
|
||||||
board_build.arduino.memory_type = qio_opi
|
board_build.arduino.memory_type = qio_opi
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
upload_speed = 115200
|
upload_speed = 115200
|
||||||
@ -29,8 +31,8 @@ board_build.partitions = huge_app.csv
|
|||||||
build_flags =
|
build_flags =
|
||||||
-D LV_LVGL_H_INCLUDE_SIMPLE
|
-D LV_LVGL_H_INCLUDE_SIMPLE
|
||||||
-D BOARD_HAS_PSRAM
|
-D BOARD_HAS_PSRAM
|
||||||
-D ARDUINO_USB_MODE=1
|
;-D ARDUINO_USB_MODE=1
|
||||||
-D ARDUINO_USB_CDC_ON_BOOT=1
|
;-D ARDUINO_USB_CDC_ON_BOOT=1
|
||||||
;-D DEBUG_MINING=1
|
;-D DEBUG_MINING=1
|
||||||
lib_deps =
|
lib_deps =
|
||||||
https://github.com/takkaO/OpenFontRender
|
https://github.com/takkaO/OpenFontRender
|
||||||
|
@ -28,11 +28,10 @@ extern OpenFontRender render;
|
|||||||
extern TFT_eSprite background;
|
extern TFT_eSprite background;
|
||||||
|
|
||||||
bool checkHalfShare(unsigned char* hash) {
|
bool checkHalfShare(unsigned char* hash) {
|
||||||
bool valid = true;
|
//bool valid = true;
|
||||||
for(uint8_t i=31; i>31-2; i--) {
|
for(uint8_t i=31; i>31-2; i--) {
|
||||||
if(hash[i] != 0) {
|
if(hash[i] != 0) {
|
||||||
valid = false;
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef DEBUG_MINING
|
#ifdef DEBUG_MINING
|
||||||
@ -43,7 +42,7 @@ bool checkHalfShare(unsigned char* hash) {
|
|||||||
Serial.println();
|
Serial.println();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return valid;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool checkShare(unsigned char* hash) {
|
bool checkShare(unsigned char* hash) {
|
||||||
@ -423,6 +422,7 @@ void runWorker(void *name) {
|
|||||||
// search a valid nonce
|
// search a valid nonce
|
||||||
uint32_t nonce = 0;
|
uint32_t nonce = 0;
|
||||||
uint32_t startT = micros();
|
uint32_t startT = micros();
|
||||||
|
bytearray_blockheader[79] = 0; //We only mine until 1MHashes this will allways be zero
|
||||||
Serial.println(">>> STARTING TO HASH NONCES");
|
Serial.println(">>> STARTING TO HASH NONCES");
|
||||||
while(true) {
|
while(true) {
|
||||||
bytearray_blockheader[76] = (nonce >> 0) & 0xFF;
|
bytearray_blockheader[76] = (nonce >> 0) & 0xFF;
|
||||||
@ -558,4 +558,3 @@ void runMonitor(void *name){
|
|||||||
vTaskDelay(5000 / portTICK_PERIOD_MS);
|
vTaskDelay(5000 / portTICK_PERIOD_MS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user