PyBitmessage-2021-04-27/src/workprover
Biryuzovye Kleshni 7ad1725235 Applying solution I don't understand 2018-08-02 15:00:23 +00:00
..
fastsolver Readability 2018-07-30 03:10:48 +00:00
Readme.md New POW calculation module 2018-06-23 08:57:34 +00:00
__init__.py Applying solution I don't understand 2018-08-02 15:00:23 +00:00
dumbsolver.py Don't load heavy modules until needed 2018-06-28 14:19:50 +00:00
fastsolver.py Added POW settings to settings window 2018-07-29 04:38:05 +00:00
forkingsolver.py Connect WorkProver to SingleWorker 2018-07-15 18:37:23 +00:00
gpusolver.cl New POW calculation module 2018-06-23 08:57:34 +00:00
gpusolver.py Added POW settings to settings window 2018-07-29 04:38:05 +00:00
test.py Fixed big-endian decoding 2018-07-30 02:58:39 +00:00
utils.py More old code deleted 2018-07-29 12:47:44 +00:00

Readme.md

Please keep this module independent from the outside code, so that it can be reused in other applications.

If you are going to use it, you should wrap your program's main file in this:

import workprover.dumbsolver

workprover.dumbsolver.libcrypto = ...

if __name__ == "__main__":
    import multiprocessing

    multiprocessing.freeze_support()

    ...

See the multiprocessing module documentation for explaination.

Build fast solver

On Linux, BSDs or MacOS: make -C fastsolver.

On Windows:

  • Install OpenSSL. Build it yourself or install third-party prebuilt binaries.

  • Install MSVC as part of Visual Studio or standalone. Official offline installer: https://aka.ms/vcpython27.

  • Open its command line and go to the fastsolver directory.

  • Add OpenSSL paths to environment variables:

set INCLUDE=C:\OpenSSL-Win64\include;%INCLUDE%
set LIB=C:\OpenSSL-Win64\lib;%LIB%
  • Do cl @options.txt.

  • Append the -32 or -64 suffix to the DLL file name.