Skip to content

Commit

Permalink
Merge pull request #76 from scala-network/v4.1.0
Browse files Browse the repository at this point in the history
V4.1.0
  • Loading branch information
hayzamjs authored Oct 7, 2020
2 parents bafcfd6 + f6c8e39 commit d8b9add
Show file tree
Hide file tree
Showing 19 changed files with 397 additions and 389 deletions.
7 changes: 3 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
path = external/rapidjson
url = https://github.com/Tencent/rapidjson
branch = master
[submodule "external/panthera"]
path = external/panthera
url = https://github.com/scala-network/DefyX
branch = Panthera_DP
[submodule "external/trezor-common"]
path = external/trezor-common
url = https://github.com/trezor/trezor-common
branch = master
[submodule "external/randomx"]
path = external/randomx
url = https://github.com/scala-network/Panthera
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,21 +198,21 @@ if(NOT MANUAL_SUBMODULES)
message(FATAL_ERROR "Submodule '${relative_path}' is not up-to-date. Please update all submodules with\ngit submodule update --init --force\nor run cmake with -DMANUAL_SUBMODULES=1\n")
endif()
endfunction ()

message(STATUS "Checking submodules")
check_submodule(external/miniupnp)
check_submodule(external/unbound)
check_submodule(external/rapidjson)
check_submodule(external/trezor-common)
check_submodule(external/panthera)
check_submodule(external/randomx)
endif()
endif()

set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")

# set this to 0 if per-block checkpoint needs to be disabled
set(PER_BLOCK_CHECKPOINT 0)
set(PER_BLOCK_CHECKPOINT 1)

if(PER_BLOCK_CHECKPOINT)
add_definitions("-DPER_BLOCK_CHECKPOINT")
Expand Down
2 changes: 1 addition & 1 deletion external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ endif()

add_subdirectory(db_drivers)
add_subdirectory(easylogging++)
add_subdirectory(panthera EXCLUDE_FROM_ALL)
add_subdirectory(randomx EXCLUDE_FROM_ALL)
1 change: 0 additions & 1 deletion external/panthera
Submodule panthera deleted from 4e0790
1 change: 1 addition & 0 deletions external/randomx
Submodule randomx added at 3dd119
Binary file modified src/blocks/checkpoints.dat
Binary file not shown.
4 changes: 2 additions & 2 deletions src/crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ set(crypto_sources
random.c
skein.c
slow-hash.c
dx-slow-hash.c
rx-slow-hash.c
CryptonightR_JIT.c
tree-hash.c)

Expand Down Expand Up @@ -90,7 +90,7 @@ scala_add_library(cncrypto
target_link_libraries(cncrypto
PUBLIC
epee
defyx
randomx
${Boost_SYSTEM_LIBRARY}
${SODIUM_LIBRARY}
PRIVATE
Expand Down
Loading

0 comments on commit d8b9add

Please sign in to comment.