rojoambinina / bitcoin-balance

This code is only for generating compressed and uncompressed bitcoins addresses with their balances, and also displays the private keys at the same time. The algorithm generates bitcoin addresses until it finds a non-zero balance and stores it in a text file "Lottery_BTC.txt"
3 stars 2 forks source link

Multiproceso #3

Open Yusepi93 opened 1 month ago

Yusepi93 commented 1 month ago

Como ejecutó el código en multiproceso soy novato

rojoambinina commented 1 month ago

Como ejecutó el código en multiproceso soy novato

Add these 2 lines above the code:

import multiprocessing from multiprocessing import Pool, Process, Queue

Create 2 variables:

counter = 0 cores = 9

Create a finder function with the counter parameter and then add all the codes from the While loop in this function:

def finder(counter): global num_threads LOG_EVERY_N = 500 start_time = dt.datetime.today().timestamp() counts = 0 print("Core " + str(counter))

For multiprocessing to work, you must put at the bottom of the code, that is to say after the Except part the following code:

if name == 'main': jobs = [] for counter in range(cores): mandeha = multiprocessing.Process(target=finder, args=(counter,)) jobs.append(mandeha) mandeha.start()

That's all

Yusepi93 commented 4 weeks ago

Traceback (most recent call last): File "/root/Multi-Currency-Rich-Address-Finder-v1.0/bitcoin-bruteforce/BittyV3/Bittyblockstream.py", line 35, in miz = ctypes.CDLL(pathdll) ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ctypes/init.py", line 376, in init self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: /root/Multi-Currency-Rich-Address-Finder-v1.0/bitcoin-bruteforce/BittyV3/ice_secp256k1.so: cannot open shared object file: No such file or directory.. da error

Yusepi93 commented 4 weeks ago

Traceback (most recent call last): File "/root/Multi-Currency-Rich-Address-Finder-v1.0/bitcoin-bruteforce/BittyV3/Bittyblockstream.py", line 35, in miz = ctypes.CDLL(pathdll) ^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ctypes/init.py", line 376, in init self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: /root/Multi-Currency-Rich-Address-Finder-v1.0/bitcoin-bruteforce/BittyV3/ice_secp256k1.so: cannot open shared object file: No such file or directory