question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Script Crashes after 7 hours of mining.

See original GitHub issue

Hello. I’m using this script to mine a sha256 genesis block but after 7 hours of mining it crashes with this error. Note: The script actually works if i start it without any parameters(by doing so i presume i mine satoshi’s genesis block and it works )

bits: 0x1d00ffff
Searching for genesis hash..
179738.0 hash/s, estimate: 6.6 hTraceback (most recent call last):
  File "genesis.py", line 203, in <module>
    main()
  File "genesis.py", line 20, in main
    genesis_hash, nonce = generate_hash(block_header, algorithm, options.nonce, options.bits)
  File "genesis.py", line 140, in generate_hash
    data_block = data_block[0:len(data_block) - 4] + struct.pack('<I', nonce)
struct.error: 'I' format requires 0 <= number <= 4294967295

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
jonasbitscommented, Apr 13, 2016

There needs to be code written to also iterate within the coinbase, the famous newspaper headline. 4294967295 is bigger than 0xFFFF FFFF

0reactions
MaherKMcommented, May 18, 2021

Same issue. Tried a shorter timestamp and still got the error. Original BTC timestamp is 69, mine was 65 so I think that is not the solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

For whatever reason my amd mining rig crashes almost once ...
I am using a PCIe splitter. The only thing that reduced the crashes was a task scheduler script to Auto restart the PC...
Read more >
How to Run a Mining Rig: 24/7 Uptime
Eliminate (Or At Least Minimize) Crashes; Fully Automate the Restart Procedure in the Event of a Crash · Turn your rig off then...
Read more >
Auto-restart crashed mining processes in ethOS 1.2.9
https://trick77.com/auto-restart-crashed-mining-processes-ethos. #. # This script will automatically reboot the mining rig depending on the ...
Read more >
Watch utility for the ethminer - Ethereum GPU mining worker ...
It looks like the worker process ethminer.exe for this cryptocurrency miner has some kind of a latent bug that makes it unstable over...
Read more >
Mining rig crashing with rx5700 xt sapphire - Hiveon
The miners also restart because of the sapphire GPUs, saying that both “GPU X: detected DEAD (XX:XX.X), will execute restart script watchdog.sh” ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found