Post
Topic
Board Development & Technical Discussion
Re: Python based Solo miner for CPU | Learn Basic Bitcoin Mining | Just for fun
by
vshoes
on 20/11/2024, 08:07:22 UTC
It's very slow. I optimised a little, but couldn't find many ways to improve. One way way was change the libraries imported: instead of

Code:
import binascii
binascii.hexlify(merkle_root).decode()

replaced with importing the specific function from the library and giving an assignation as below

Code:
from binascii import hexlify as h
h(merkle_root).decode()

Then do this for every function called from an imported library. Improvement was slight but noticable