Skip to content

Commit 4f4ab75

Browse files
StealthSendStealthSend
authored andcommitted
QPRegistry full multithreading, address serialization fixes
1 parent 96c8196 commit 4f4ab75

52 files changed

Lines changed: 1615 additions & 949 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ endfunction()
5757
remove_compiler_flags(-O0 -O1 -O2 -O3 -Os -Ofast)
5858

5959
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
60+
# use "-DCMAKE_BUILD_TYPE=Debug"
61+
message(STATUS "Creating DEBUG build.")
6062
add_compile_options(-O0)
6163
add_link_options(-O0)
6264
else()
65+
message(STATUS "Creating RELEASE build.")
6366
add_compile_options(-O2)
6467
add_link_options(-O2)
6568
endif()

Stealth.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ win32 {
1818

1919
TEMPLATE = app
2020
TARGET = "Stealth Qt"
21-
VERSION = 3.2.0.0
21+
VERSION = 3.2.1.2
2222
INCLUDEPATH += src src/json src/qt src/tor
2323
INCLUDEPATH += src/tor/adapter src/tor/common src/tor/ext
2424
INCLUDEPATH += src/tor/ext/curve25519_donna src/tor/ext/ed25519/donna

contrib/macdeploy/Info-daemon.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
<key>CFBundleDevelopmentRegion</key>
88
<string>English</string>
99
<key>CFBundleGetInfoString</key>
10-
<string>Stealth [XST] Complete Anonymity 3.2.0.0</string>
10+
<string>Stealth [XST] Complete Anonymity 3.2.1.2</string>
1111
<key>CFBundleIdentifier</key>
1212
<string>org.stealth.stealth-qt</string>
1313
<key>CFBundleShortVersionString</key>
14-
<string>3.2.0.0</string>
14+
<string>3.2.1.2</string>
1515
<key>CFBundleSignature</key>
1616
<string>oXST</string>
1717
<key>CFBundleVersion</key>
18-
<string>3.2.0.0</string>
18+
<string>3.2.1.2</string>
1919
<key>CFBundleName</key>
2020
<string>StealthCoind</string>
2121
</dict>

contrib/macdeploy/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<key>CFBundlePackageType</key>
1010
<string>APPL</string>
1111
<key>CFBundleGetInfoString</key>
12-
<string>Stealth [XST] Complete Anonymity 3.1.8.0</string>
12+
<string>Stealth [XST] Complete Anonymity 3.2.1.2</string>
1313
<key>CFBundleExecutable</key>
1414
<string>Stealth Qt</string>
1515
<key>CFBundleIdentifier</key>
1616
<string>org.stealth.stealth-qt</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.1.8.0</string>
18+
<string>3.2.1.2</string>
1919
<key>CFBundleSignature</key>
2020
<string>oXST</string>
2121
<key>CFBundleVersion</key>
22-
<string>3.1.8.0</string>
22+
<string>3.2.1.2</string>
2323
</dict>
2424
</plist>

contrib/pyHash9/CMakeLists.txt

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
cmake_minimum_required(VERSION 3.12)
2+
project(pyHash9 VERSION 1.0 LANGUAGES C CXX)
3+
4+
set(CUSTOM_PYTHON_PATH "" CACHE PATH "Path to custom Python installation")
5+
6+
if(CUSTOM_PYTHON_PATH)
7+
set(Python_ROOT_DIR ${CUSTOM_PYTHON_PATH})
8+
message(STATUS "Using custom Python path: ${CUSTOM_PYTHON_PATH}")
9+
elseif(DEFINED ENV{CUSTOM_PYTHON_PATH})
10+
set(Python_ROOT_DIR $ENV{CUSTOM_PYTHON_PATH})
11+
message(STATUS "Using custom Python path from environment: "
12+
"$ENV{CUSTOM_PYTHON_PATH}")
13+
endif()
14+
15+
find_package(Python 3 REQUIRED COMPONENTS Interpreter Development.Module)
16+
message(STATUS "Found Python: ${Python_EXECUTABLE}")
17+
message(STATUS "Python Include Dirs: ${Python_INCLUDE_DIRS}")
18+
message(STATUS "Python Libraries: ${Python_LIBRARIES}")
19+
20+
set(CMAKE_CXX_STANDARD 11)
21+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
22+
23+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIC")
24+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIC")
25+
26+
set(STEALTH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
27+
28+
include_directories(${Python_INCLUDE_DIRS})
29+
include_directories(${STEALTH_ROOT}/src/crypto/hashblock)
30+
include_directories(${STEALTH_ROOT}/src/primitives)
31+
32+
set(HASHBLOCK_SOURCES
33+
${STEALTH_ROOT}/src/crypto/hashblock/blake.c
34+
${STEALTH_ROOT}/src/crypto/hashblock/bmw.c
35+
${STEALTH_ROOT}/src/crypto/hashblock/groestl.c
36+
${STEALTH_ROOT}/src/crypto/hashblock/jh.c
37+
${STEALTH_ROOT}/src/crypto/hashblock/keccak.c
38+
${STEALTH_ROOT}/src/crypto/hashblock/skein.c
39+
${STEALTH_ROOT}/src/crypto/hashblock/luffa.c
40+
${STEALTH_ROOT}/src/crypto/hashblock/cubehash.c
41+
${STEALTH_ROOT}/src/crypto/hashblock/shavite.c
42+
${STEALTH_ROOT}/src/crypto/hashblock/simd.c
43+
${STEALTH_ROOT}/src/crypto/hashblock/echo.c
44+
${STEALTH_ROOT}/src/crypto/hashblock/hamsi.c
45+
${STEALTH_ROOT}/src/crypto/hashblock/fugue.c
46+
)
47+
48+
set(PYHASH9_SOURCES
49+
${CMAKE_CURRENT_SOURCE_DIR}/pyHash9.cpp
50+
)
51+
52+
add_library(pyHash9 MODULE ${HASHBLOCK_SOURCES} ${PYHASH9_SOURCES})
53+
54+
set_target_properties(pyHash9 PROPERTIES
55+
PREFIX ""
56+
OUTPUT_NAME "pyHash9"
57+
POSITION_INDEPENDENT_CODE ON
58+
SUFFIX ".so"
59+
)
60+
61+
target_link_libraries(pyHash9 PRIVATE Python::Module)
62+
63+
include(GNUInstallDirs)
64+
if(DEFINED ENV{VIRTUAL_ENV} OR DEFINED Python_SITELIB)
65+
set(PYTHON_SITE_PACKAGES ${Python_SITELIB})
66+
else()
67+
execute_process(
68+
COMMAND ${Python_EXECUTABLE} -c "import site; print(site.USER_SITE)"
69+
OUTPUT_VARIABLE PYTHON_SITE_PACKAGES
70+
OUTPUT_STRIP_TRAILING_WHITESPACE
71+
)
72+
endif()
73+
74+
install(TARGETS pyHash9
75+
LIBRARY DESTINATION ${PYTHON_SITE_PACKAGES}
76+
COMPONENT python)
77+
78+
file(COPY ${CMAKE_SOURCE_DIR}/test-pyHash9.py
79+
DESTINATION ${CMAKE_BINARY_DIR})
80+
81+
message(STATUS "pyHash9 will be installed to: ${PYTHON_SITE_PACKAGES}")

contrib/pyHash9/Makefile

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)