revoxhere / duino-coin

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

AVR_Miner.py error name 'accept' is not defined #1771

Closed FujaTyping closed 3 months ago

FujaTyping commented 3 months ago

Describe the bug I run the AVR_Miner.py when accepted at 100/100 it's stop mining automatically

To Reproduce Steps to reproduce the behavior:

  1. Run AVR_Miner.py
  2. Wait untill accepted at 100/100
  3. Go to console
  4. See error

Expected behavior Run AVR_Miner.py for a while got this , I think is limited at 100?

Exception in thread Thread-2 (mine_avr):
Traceback (most recent call last):
  File "/usr/lib64/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/home/fujatyping/Miner/duino-coin-4.0/AVR_Miner.py", line 1242, in mine_avr
    f"{get_string('surpassed')} {accept.value} {get_string('surpassed_shares')}",
                                 ^^^^^^
NameError: name 'accept' is not defined

Screenshots/photos image

System (please complete the following information):