Skip to content

Commit 688e153

Browse files
authored
Merge pull request #444 from Creepsky/development
1.9.0
2 parents 34b840a + b4360e9 commit 688e153

Some content is hidden

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

84 files changed

+4071
-2705
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ before_build:
6868
- mkdir C:\projects\creepMiner\bin\Release
6969
- cd C:\projects\creepminer
7070
- conan install . -o Poco:shared=False -o OpenSSL:shared=False -o zlib:shared=False --build=missing
71-
- cmake CMakeLists.txt -G "Visual Studio 15 2017 Win64" -DUSE_CUDA=OFF -DUSE_OPENCL=%GPU% -DCMAKE_BUILD_TYPE=RELEASE -DOpenCL_INCLUDE_DIR=%OPENCL_INCLUDE_DIR% -DOpenCL_LIBRARY=%OPENCL_LIB_DIR%
71+
- cmake CMakeLists.txt -G "Visual Studio 15 2017 Win64" -DUSE_CUDA=OFF -DUSE_OPENCL=%GPU% -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DOpenCL_INCLUDE_DIR=%OPENCL_INCLUDE_DIR% -DOpenCL_LIBRARY=%OPENCL_LIB_DIR%
7272

7373
# scripts to run after build
7474
after_build:

CMakeLists.txt

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project(creepMiner)
66
set(CMAKE_CXX_STANDARD 14)
77

88
if (NOT CMAKE_BUILD_TYPE)
9-
set(CMAKE_BUILD_TYPE RELEASE)
9+
set(CMAKE_BUILD_TYPE RELWITHDEBINFO)
1010
endif ()
1111

1212
##################################################################
@@ -131,15 +131,15 @@ file(GLOB SOURCE_FILES
131131
src/logging/channels/*.*pp
132132
src/logging/*.*pp
133133
src/mining/*.*pp
134-
src/network/*.*pp
135-
src/nxt/nxt_address.h
136-
src/nxt/nxt_address.cpp
137-
src/plots/*.*pp
138-
src/shabal/*.*pp
139-
src/shabal/sphlib/*.*pp
134+
src/network/*.*pp
135+
src/nxt/nxt_address.h
136+
src/nxt/nxt_address.cpp
137+
src/plots/*.*pp
138+
src/shabal/*.*pp
139+
src/shabal/sphlib/*.*pp
140140
src/wallet/*.*pp
141141
src/webserver/*.*pp
142-
src/resources.rc)
142+
src/resources.rc)
143143

144144
##################################################################
145145
# Special files and settings
@@ -192,6 +192,13 @@ endif ()
192192
##################################################################
193193
# Libraries
194194
##################################################################
195+
196+
# Optimised Shabal Library
197+
find_library(SHABAL_LIB NAMES shabal.dll libshabal.dylib libshabal.so HINTS "${CMAKE_SOURCE_DIR}/libShabal")
198+
add_library(shabalLib STATIC IMPORTED)
199+
set_property(TARGET shabalLib PROPERTY IMPORTED_LOCATION ${SHABAL_LIB})
200+
target_link_libraries(creepMiner shabalLib)
201+
195202
target_link_libraries(creepMiner ${CONAN_LIBS})
196203

197204
if (NOT USE_CONAN)
@@ -222,9 +229,13 @@ if (NOT MSVC)
222229
WORLD_READ WORLD_WRITE WORLD_EXECUTE)
223230
if (UNIX)
224231
install(DIRECTORY lib/ DESTINATION lib)
225-
endif ()
232+
install(FILES libShabal/libshabal.so DESTINATION .)
233+
elseif (APPLE)
234+
install(FILES libShabal/libshabal.dylib DESTINATION .)
235+
endif()
226236
else ()
227237
install(TARGETS creepMiner RUNTIME DESTINATION .)
238+
install(FILES libShabal/shabal.dll DESTINATION .)
228239
endif ()
229240

230241
##################################################################

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ creepMiner is written in C++ and is multi-threaded to get the best performance,
1111
- Multi Mining (Build a network of several miners)
1212
- Filter bad deadlines with the auto target deadline feature
1313
- Responsive web interface for keeping a close eye on your mining
14+
- Support for **[BFS (Burst File System)](https://github.com/Creepsky/creepMiner/wiki/Burst-File-System)**
1415

1516
## Getting Started
1617
Please follow the [Quick start guide](https://github.com/Creepsky/creepMiner/wiki)

libShabal/libshabal.dylib

1.64 MB
Binary file not shown.

libShabal/libshabal.so

3.55 MB
Binary file not shown.

libShabal/shabal.dll

901 KB
Binary file not shown.

libShabal/shabal.dll.lib

1.04 MB
Binary file not shown.

resources/frontail.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"words": {
3+
"ERROR": "color: #E88D67;",
4+
"Error": "color: #E88D67;",
5+
"WARN": "color: yellow;",
6+
"INFO": "color: #99C5B5;",
7+
"Node is DEAD": "color: #E88D67;",
8+
"Nonce forward request": "color: yellow;",
9+
"Got nonce forward request": "color: yellow;",
10+
"nonce forward request from remote miner": "color: yellow;",
11+
"success": "font-weight: bold;color: green;",
12+
"deadlineText": "font-weight: bold;color: green;",
13+
"ended in": "font-weight: bold;color:#70389c;",
14+
"Sending wallet request": "color: yellow;",
15+
"Processed block": "color: yellow;color: #99C5B5;",
16+
"Ip": "color: yellow;color: #99C5B5;",
17+
"in: ": "color: #2fa4e7;",
18+
"Submit-loop 1": "color: #468847;",
19+
"Submit-loop 2": "color: #468847;",
20+
"Submit-loop ": "color: yellow;",
21+
"ItemStateChangedEvent": "font-weight: bold;"
22+
},
23+
"lines": {
24+
"/Volumes/": "color: #ff3898;font-weight: bold;",
25+
"miner-01": "color: #ff3898;font-weight: bold;",
26+
"miner-02": "color: #ff54A7;font-weight: bold;",
27+
"miner-03": "color: #E4239D;font-weight: bold;",
28+
"ERROR": "font-weight: bold;",
29+
"Error": "font-weight: bold;",
30+
"block#": "color: #99C5B5;",
31+
"scoop#": "color: #99C5B5;",
32+
"baseTarget#": "color: #99C5B5;",
33+
"nonce: ": "color: #2fa4e7;",
34+
"nonce found": "color: #73a839;",
35+
"nonce submitted": "color: #468847;",
36+
"JSON confirmation": "color: #468847;",
37+
"nonce confirmed": "color: green;font-weight: bold;",
38+
"requestType=getMiningInfo": "color: black;"
39+
}
40+
}

resources/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ echo $use_avx2
8888
echo $use_opencl
8989
echo $use_cuda
9090

91+
cd ..
9192
conan install . --build=missing -s compiler.libcxx=libstdc++11
9293
rm CMakeCache.txt -f
9394
cmake . -DCMAKE_BUILD_TYPE=RELEASE $use_sse4 $use_avx $use_avx2 $use_opencl $use_cuda
9495
make -j$(nproc)
96+
cp -Tr resources/public bin/public
97+
cp resources/run.sh bin
98+
cp resources/screen.sh bin

resources/install_deps_conan.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cd ..
2+
conan install . --build=missing -o Poco:shared=False -o OpenSSL:shared=False -o zlib:shared=False -if conan/debug -s build_type=Debug
3+
conan install . --build=missing -o Poco:shared=False -o OpenSSL:shared=False -o zlib:shared=False -s build_type=Release
4+
pause

0 commit comments

Comments
 (0)