Open 0tokens opened 8 months ago
I updated it to record keys already used and save sessions.....that may work for you
After running it for a day it started counting backwards. By the way, it runs fast and nice, nice project!
That is strange. There are still a few bugs I guess but I've not seen in count backwards yet.
I updated it to record keys already used and save sessions.....that may work for you
That's a good idea, thanks!
You can replicate the problem with counting quickly by changing to this line: total_keys_generated.value += 10000 After some time the values go below 0. I hope you can solve it since it's a nice Bitcoin lottery player :-) Many thanks in advance!
It has to do with Python's multiprocessing. the Value type doesn't have built-in atomic operations, so concurrent updates may lead to incorrect results.
Generated Keys: -2,103,267,295 | Keys/Second: -9,7410 Generated Keys: -2,102,467,295 | Keys/Second: -9,731 Generated Keys: -2,088,767,295 | Keys/Second: -9,660
After running it for a day it started counting backwards. By the way, it runs fast and nice, nice project!