Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
Bram24732
on 21/04/2025, 05:47:56 UTC
Where at?
Sorry I meant mcd script

Ok, now in Python for better understanding.

Thanks, there is still one flaw :
By counting only "wins" you miss one very important piece of data : how fast was a method compared to the other. ?A win 5x faster does not have the same value as a win 1.2x faster.
This can be changed by summing the number of checks made and averaging them, like this :

Code:
results = {"sequential": {"wins": 0, "checks": 0}, "precise": {"wins": 0, "checks": 0}, "ties": 0}
...
results["sequential"]["checks"] += seq_result["checks"]
results["precise"]["checks"] += pre_result["checks"]
.....
Sequential: {results['sequential']['checks']}
Prefix: {results['precise']['checks']}