- Add core crypto implementation (ETChash.cpp, ETCCache.cpp) - Implement ECIP-1099 epoch calculation for Ethereum Classic - Add Ethash support with standard 30000 block epochs - Integrate with OpenCL and CUDA backends for memory calculation - Register ETCHASH_ETC and ETHASH_ETH algorithm IDs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
528 B
CMake
21 lines
528 B
CMake
if (WITH_ETCHASH)
|
|
add_definitions(/DXMRIG_ALGO_ETCHASH)
|
|
|
|
list(APPEND HEADERS_CRYPTO
|
|
src/crypto/etchash/ETChash.h
|
|
src/crypto/etchash/ETCCache.h
|
|
)
|
|
|
|
list(APPEND SOURCES_CRYPTO
|
|
src/crypto/etchash/ETChash.cpp
|
|
src/crypto/etchash/ETCCache.cpp
|
|
)
|
|
|
|
# ETChash uses the same libethash library as KawPow
|
|
if (NOT WITH_KAWPOW)
|
|
add_subdirectory(src/3rdparty/libethash)
|
|
set(ETHASH_LIBRARY ethash)
|
|
endif()
|
|
else()
|
|
remove_definitions(/DXMRIG_ALGO_ETCHASH)
|
|
endif()
|