Replace ProgPowZ with RandomX for ASIC-resistant proof-of-work. The full dataset is initialized multi-threaded at startup with the key "LetheanRandomXv1". Thread-local VMs are created on demand. Switch difficulty algorithm from Zano's 720-block window to LWMA-1 (zawy12) with a 60-block window for much faster convergence after hashrate changes. Target block time set to 10s for PoW. Add standard stratum mining.* protocol handlers (subscribe, authorize, submit, extranonce.subscribe) alongside existing EthProxy eth_* handlers, with automatic protocol detection and mining.notify translation for XMRig-based miners. Generate fresh Lethean genesis block and premine wallet. Replace all remaining hardcoded Zano addresses in tests with runtime-generated keys to avoid prefix mismatches. Link RandomX library across all build targets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
1.2 KiB
CMake
33 lines
1.2 KiB
CMake
|
|
add_subdirectory(db)
|
|
add_subdirectory(ethereum)
|
|
add_subdirectory(randomx)
|
|
|
|
if(USE_BITCOIN_SECP256K1_FOR_ECDSA)
|
|
option(SECP256K1_BUILD_BENCHMARK "Build benchmarks." OFF)
|
|
option(SECP256K1_BUILD_TESTS "Build tests." OFF)
|
|
option(SECP256K1_BUILD_EXHAUSTIVE_TESTS "Build exhaustive tests." OFF)
|
|
option(SECP256K1_BUILD_CTIME_TESTS "Build constant-time tests." OFF)
|
|
option(SECP256K1_BUILD_EXAMPLES "Build examples." OFF)
|
|
set_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED 1)
|
|
|
|
if(STATIC)
|
|
set(SECP256K1_DISABLE_SHARED ON CACHE BOOL "Disable shared library for secp256k1")
|
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build static libraries by default" FORCE)
|
|
endif()
|
|
add_subdirectory(bitcoin-secp256k1)
|
|
set_property(TARGET secp256k1 PROPERTY FOLDER "contrib")
|
|
set_property(TARGET secp256k1_precomputed PROPERTY FOLDER "contrib")
|
|
endif()
|
|
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
|
|
message("excluded upnp support for IOS build")
|
|
return()
|
|
endif()
|
|
|
|
set_property(TARGET mdbx PROPERTY FOLDER "contrib")
|
|
set_property(TARGET lmdb PROPERTY FOLDER "contrib")
|
|
|
|
|
|
set_property(TARGET mdbx_chk mdbx_copy mdbx_dump mdbx_load mdbx_stat PROPERTY FOLDER "unused")
|