Skip to content

New POW calculation module #1284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 38 commits into
base: v0.6
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a181da3
New POW calculation module
Kleshni Jun 23, 2018
079326b
More precise exceptions
Kleshni Jun 23, 2018
46da7e8
Fixed indentation
Kleshni Jun 23, 2018
917b55d
Sorted imports
Kleshni Jun 23, 2018
2eeb58a
Fixed indentation
Kleshni Jun 23, 2018
43f7e1e
Improved unit tests loading
Kleshni Jun 23, 2018
30e7df6
Skip OpenCL test if unavailable
Kleshni Jun 23, 2018
721ad8c
Add "workprover" to packages list
Kleshni Jun 23, 2018
4f9274a
More build system integration for WorkProver
Kleshni Jun 25, 2018
cac0237
OS X compatibility
Kleshni Jun 25, 2018
4c0b0c7
Merge branch 'v0.6' into POW
Kleshni Jun 27, 2018
7999330
Downgrade OpenSSL version
Kleshni Jun 27, 2018
90ae95d
Added WorkProver to executable builders
Kleshni Jun 28, 2018
c28a4f6
Don't load heavy modules until needed
Kleshni Jun 28, 2018
6fb637d
Merge branch 'v0.6' into POW
Kleshni Jun 28, 2018
0c3ce79
Wrap "bitmessagemain.py" for use with "multiprocessing"
Kleshni Jun 30, 2018
5429191
Fix for running after installation
Kleshni Jun 30, 2018
3c0e235
Signal handling
Kleshni Jun 30, 2018
8e0bff7
Connect WorkProver to SingleWorker
Kleshni Jul 15, 2018
b24edfd
Merge branch 'v0.6' into POW
Kleshni Jul 15, 2018
e94bdf4
Fix "maxcores" setting
Kleshni Jul 15, 2018
d1a5c60
Deleted generated code for settings window
Kleshni Jul 20, 2018
b2441c7
Deleted generated code for main window
Kleshni Jul 22, 2018
c66156a
Added POW speed indicator
Kleshni Jul 22, 2018
ce4fe3a
Added sending cancellation
Kleshni Jul 23, 2018
174fb38
Forgotten litter
Kleshni Jul 23, 2018
f6415d6
Added "Edit and resend" option
Kleshni Jul 23, 2018
a27b5e9
Merge branch 'v0.6' into POW
Kleshni Jul 23, 2018
2c7d677
Added estimated POW time tooltip
Kleshni Jul 23, 2018
373157d
Added POW settings to settings window
Kleshni Jul 29, 2018
00c4ee8
Added API for raw objects
Kleshni Jul 29, 2018
02ece2d
Added more API for raw objects
Kleshni Jul 29, 2018
c22c5c2
Removed broken API methods
Kleshni Jul 29, 2018
a398354
Deleted old module
Kleshni Jul 29, 2018
8e1259d
More old code deleted
Kleshni Jul 29, 2018
0aaad8b
Fixed big-endian decoding
Kleshni Jul 30, 2018
192b083
Readability
Kleshni Jul 30, 2018
7ad1725
Applying solution I don't understand
Kleshni Aug 2, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ install:
script:
- python checkdeps.py
- pybitmessage -t
- python setup.py test
20 changes: 1 addition & 19 deletions checkdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,25 +88,7 @@ def testCompiler():
# silent, we can't test without setuptools
return True

bitmsghash = Extension(
'bitmsghash',
sources=['src/bitmsghash/bitmsghash.cpp'],
libraries=['pthread', 'crypto'],
)

dist = Distribution()
dist.ext_modules = [bitmsghash]
cmd = build_ext(dist)
cmd.initialize_options()
cmd.finalize_options()
cmd.force = True
try:
cmd.run()
except CompileError:
return False
else:
fullPath = os.path.join(cmd.build_lib, cmd.get_ext_filename("bitmsghash"))
return os.path.isfile(fullPath)
return True


prereqs = detectPrereqs()
Expand Down
4 changes: 2 additions & 2 deletions packages/pyinstaller/bitmessagemain.spec
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ else:
arch=64

a.binaries += [('libeay32.dll', openSSLPath + 'libeay32.dll', 'BINARY'),
(os.path.join('bitmsghash', 'bitmsghash%i.dll' % (arch)), os.path.join(srcPath, 'bitmsghash', 'bitmsghash%i.dll' % (arch)), 'BINARY'),
(os.path.join('bitmsghash', 'bitmsghash.cl'), os.path.join(srcPath, 'bitmsghash', 'bitmsghash.cl'), 'BINARY'),
("workprover/fastsolver/libfastsolver-{}.dll".format(arch), os.path.join(srcPath, "workprover/fastsolver/libfastsolver-{}.dll".format(arch)), "BINARY"),
("workprover/gpusolver.cl", os.path.join(srcPath, "workprover/gpusolver.cl"), "BINARY"),
(os.path.join('sslkeys', 'cert.pem'), os.path.join(srcPath, 'sslkeys', 'cert.pem'), 'BINARY'),
(os.path.join('sslkeys', 'key.pem'), os.path.join(srcPath, 'sslkeys', 'key.pem'), 'BINARY')
]
Expand Down
17 changes: 6 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
EXTRAS_REQUIRE = {
'gir': ['pygobject'],
'notify2': ['notify2'],
'pyopencl': ['pyopencl'],
'pyopencl': ['pyopencl', 'numpy'],
'prctl': ['python_prctl'], # Named threads
'qrcode': ['qrcode'],
'sound;platform_system=="Windows"': ['winsound'],
Expand Down Expand Up @@ -50,12 +50,6 @@ def run(self):
with open(os.path.join(here, 'README.md')) as f:
README = f.read()

bitmsghash = Extension(
'pybitmessage.bitmsghash.bitmsghash',
sources=['src/bitmsghash/bitmsghash.cpp'],
libraries=['pthread', 'crypto'],
)

installRequires = []
packages = [
'pybitmessage',
Expand All @@ -66,7 +60,8 @@ def run(self):
'pybitmessage.pyelliptic',
'pybitmessage.socks',
'pybitmessage.storage',
'pybitmessage.plugins'
'pybitmessage.plugins',
'pybitmessage.workprover'
]

# this will silently accept alternative providers of msgpack
Expand Down Expand Up @@ -108,8 +103,9 @@ def run(self):
package_dir={'pybitmessage': 'src'},
packages=packages,
package_data={'': [
'bitmessageqt/*.ui', 'bitmsghash/*.cl', 'sslkeys/*.pem',
'translations/*.ts', 'translations/*.qm',
'bitmessageqt/*.ui', 'translations/*.ts', 'translations/*.qm',
'workprover/*.cl', 'workprover/fastsolver/*',
'sslkeys/*.pem',
'images/*.png', 'images/*.ico', 'images/*.icns'
]},
data_files=[
Expand All @@ -120,7 +116,6 @@ def run(self):
('share/icons/hicolor/24x24/apps/',
['desktop/icons/24x24/pybitmessage.png'])
],
ext_modules=[bitmsghash],
zip_safe=False,
entry_points={
'bitmessage.gui.menu': [
Expand Down
Loading