revoxhere / duino-coin

ᕲ Duino-Coin is a coin that can be mined with almost everything, including Arduino boards.
https://duinocoin.com
MIT License
1.08k stars 512 forks source link

Arduino miner, invalid shares are generated #1731

Closed PSLLSP closed 4 months ago

PSLLSP commented 9 months ago

Arduino miner 3.9 for RPI-PICO. Master runs on ARM based computer (Allwinner H3), it runs Armbian. Arduino miner for PICO was running without issue for days but today it reports invalid shares, it mines but everything is rejected. Unfortunately, I missed the time when the issue started, so I cannot report details.

The issue:

...
18:52:46  avr0  ⛏ Rejected (Too high starting difficulty) 0/444 (0%) ∙ 23.5s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 33ms
18:53:06  avr0  ⛏ Rejected (Too high starting difficulty) 0/445 (0%) ∙ 19.8s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 33ms
18:53:06  sys0  Periodic mining report: 
                ‖ During the last 60 seconds
                ‖ You've mined 0 shares (0.0 shares/s)
                ‖ Blocks found: 0
                ‖ With the hashrate of 20769 H/s
                ‖ In this time period, you've solved 1246142 hashes
                ‖ Total miner uptime: 28.0 hours
18:53:11  avr0  ⛏ Rejected (Too high starting difficulty) 0/446 (0%) ∙ 05.2s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 33ms
18:53:32  avr0  ⛏ Rejected (Too high starting difficulty) 0/447 (0%) ∙ 20.8s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 33ms
18:53:37  avr0  ⛏ Rejected (Too high starting difficulty) 0/448 (0%) ∙ 05.1s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 33ms
18:53:42  avr0  ⛏ Rejected (Too high starting difficulty) 0/449 (0%) ∙ 05.3s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 38ms
18:53:51  avr0  ⛏ Rejected (Too high starting difficulty) 0/450 (0%) ∙ 08.9s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 39ms
18:53:54  avr0  ⛏ Rejected (Too high starting difficulty) 0/451 (0%) ∙ 02.6s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 39ms
18:54:02  avr0  ⛏ Rejected (Too high starting difficulty) 0/452 (0%) ∙ 08.1s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 39ms
18:54:23  avr0  ⛏ Rejected (Too high starting difficulty) 0/453 (0%) ∙ 21.1s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 40ms
18:54:23  sys0  Periodic mining report: 
                ‖ During the last 78 seconds
                ‖ You've mined 0 shares (0.0 shares/s)
                ‖ Blocks found: 0
                ‖ With the hashrate of 20859 H/s
                ‖ In this time period, you've solved 1627060 hashes
                ‖ Total miner uptime: 28.0 hours
18:54:28  avr0  ⛏ Rejected (Too high starting difficulty) 0/454 (0%) ∙ 04.9s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 40ms
18:54:39  avr0  ⛏ Rejected (Too high starting difficulty) 0/455 (0%) ∙ 10.0s ∙ 18 kH/s ⚙ diff 5 k ∙ ping 40ms
...

Could be this issue related to the release of Duino miner 4.0, that was published 2 hours ago?? Maybe some changes at server side triggered this issue, maybe mining that protocol changed...


It really looks like the issue is related to the release of the new miner. I cannot mine with v3.9 anymore:

$ cat miner-AVR.sh 
#!/bin/sh

[ -f bin/activate ] && . bin/activate
python3 AVR_Miner_3.9.py "$@"

$ sh miner-AVR.sh 
A new version is available, you want to update miner [Y/n] ? n
19:04:30  sys0  Update aborted

 ‖ Official Duino-Coin © AVR Miner 3.9 2019-2023
 ‖ https://github.com/revoxhere/duino-coin
 ‖ AVR board(s) on port(s): /dev/ttyACM0
 ‖ Developer donation level: 0
 ‖ Algorithm: DUCO-S1A ⚙ AVR diff
19:04:31  net0  Searching for the fastest node to connect to
19:04:31  net0  Retrieved mining node: europe-node-3
19:04:33  sys0  Miner is outdated (v3.9) - server is on v4.0, please download latest version from https://github.com/revoxhere/duino-coin/releases/
19:04:43  net0  Server message of the day: Welcome to europe node hosted by revox (inst. 3) | NEW: Exchange various cryptocoins fast on fluffyswap.com
19:04:43  sys0  AVR mining thread is starting using DUCO-S1A algorithm (/dev/ttyACM0)
19:04:43  sys0  Hashrate test ended with 20 kH/s, assigned starting difficulty: ESP32
19:05:05  avr0  ⛏ Rejected (Too high starting difficulty) 0/1 (0%) ∙ 21.5s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 34ms
19:05:07  avr0  ⛏ Rejected (Too high starting difficulty) 0/2 (0%) ∙ 01.9s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 34ms
19:05:11  avr0  ⛏ Rejected (Too high starting difficulty) 0/3 (0%) ∙ 04.4s ∙ 21 kH/s ⚙ diff 5 k ∙ ping 33ms
19:05:12  sys0  SIGINT detected - Exiting gracefully. See you soon!
revoxhere commented 9 months ago

Thanks for reporting. I haven't tested the new difficulty tiers with a Pico. I'll try to adjust them shortly

revoxhere commented 9 months ago

Can you tell me what difficulty tier are you using?

revoxhere commented 9 months ago

Try the DUE difficulty if you can change it.

dl1lmh commented 9 months ago

I have the same problem on ESP32 Miner...

Core 1 found a correct hash (33.23s) Core 1 retrieved job feedback: BAD,Too high starting difficulty, hashrate: 10.50kH/s, share #13

revoxhere commented 9 months ago

You're not using the latest version or you have an outdated esp32 core. Follow the getting started guides for once.

Gowza-En commented 9 months ago

You're not using the latest version or you have an outdated esp32 core. Follow the getting started guides for once.

I went for the latest version of v2, the v3 alpha didn't seem to work

revoxhere commented 4 months ago

Closing due to inactivity.