Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
fantom06
on 19/04/2025, 10:03:32 UTC
Exception in thread Thread-1 (_handle_workers):
Traceback (most recent call last):
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0  File "\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0    self.run()
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0  File "\Python\Python311\Lib\threading.py", line 982, in run
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0    self._target(*self._args, **self._kwargs)
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0  File "Python\Python311\Lib\multiprocessing\pool.py", line 522, in _handle_workers
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0    cls._wait_for_updates(current_sentinels, change_notifier)
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0  File "rograms\Python\Python311\Lib\multiprocessing\pool.py", line 502, in _wait_for_updates
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0    wait(sentinels, timeout=timeout)
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0  File "ograms\Python\Python311\Lib\multiprocessing\connection.py", line 896, in wait
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0    ready_handles = _exhaustive_wait(waithandle_to_obj.keys(), timeout)
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0  File "ms\Python\Python311\Lib\multiprocessing\connection.py", line 828, in _exhaustive_wait
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0    res = _winapi.WaitForMultipleObjects(L, False, timeout)
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 0ValueError: need at most 63 handles, got a sequence of length 74
Progress: [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0.00% | Found_Seed: 1

ValueError: need at most 63 handles, got a sequence of length 74 on Windows systems with high core counts due to a limitation in the Windows, which can handle only 63 processes at a time. To resolve this, I recommend modifying the line that initializes the multiprocessing.Pool to limit the number of worker processes.
Modified Line :
Code:
with multiprocessing.Pool(min(cpu_count, 60), initializer=init_globals,
                         initargs=(shared_counter, shared_found_counter, total_seeds)) as pool:
It doesn't use my cores. I only have 4% out of 100!!!