mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
compile against randomx
This commit is contained in:
parent
7fca3a5df7
commit
be6a5cde11
3 changed files with 10 additions and 5 deletions
|
@ -128,6 +128,7 @@ set(LIBRARIES
|
|||
checkpoints
|
||||
version
|
||||
epee
|
||||
randomx
|
||||
sodium
|
||||
${Boost_LIBRARIES}
|
||||
pthread
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
|
||||
set(LIBS common;blocks;cryptonote_basic;cryptonote_core;multisig;
|
||||
cryptonote_protocol;daemonizer;mnemonics;epee;lmdb;device;
|
||||
blockchain_db;ringct;wallet;cncrypto;easylogging;version;checkpoints)
|
||||
blockchain_db;ringct;wallet;cncrypto;easylogging;version;
|
||||
checkpoints;randomx)
|
||||
|
||||
set(Xmr_INCLUDE_DIRS "${CPP_MONERO_DIR}")
|
||||
|
||||
|
@ -44,7 +45,7 @@ foreach (l ${LIBS})
|
|||
find_library(Xmr_${L}_LIBRARY
|
||||
NAMES ${l}
|
||||
PATHS ${CMAKE_LIBRARY_PATH}
|
||||
PATH_SUFFIXES "/src/${l}" "/src/" "/external/db_drivers/lib${l}" "/lib" "/src/crypto" "/contrib/epee/src" "/external/easylogging++/"
|
||||
PATH_SUFFIXES "/src/${l}" "/src/" "/external/db_drivers/lib${l}" "/lib" "/src/crypto" "/contrib/epee/src" "/external/easylogging++/" "/external/${l}"
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
|
@ -74,4 +75,4 @@ include_directories(
|
|||
${MONERO_SOURCE_DIR}/build
|
||||
${MONERO_SOURCE_DIR}/external/easylogging++
|
||||
${MONERO_SOURCE_DIR}/contrib/epee/include
|
||||
${MONERO_SOURCE_DIR}/external/db_drivers/liblmdb)
|
||||
${MONERO_SOURCE_DIR}/external/db_drivers/liblmdb)
|
||||
|
|
|
@ -1290,8 +1290,11 @@ show_block(uint64_t _blk_height)
|
|||
|
||||
// initalise page tempate map with basic info about blockchain
|
||||
|
||||
string blk_pow_hash_str = pod_to_hex(get_block_longhash(blk, _blk_height));
|
||||
cryptonote::difficulty_type blk_difficulty = core_storage->get_db().get_block_difficulty(_blk_height);
|
||||
string blk_pow_hash_str = pod_to_hex(get_block_longhash(
|
||||
core_storage, blk, _blk_height, 0));
|
||||
|
||||
cryptonote::difficulty_type blk_difficulty
|
||||
= core_storage->get_db().get_block_difficulty(_blk_height);
|
||||
|
||||
mstch::map context {
|
||||
{"testnet" , testnet},
|
||||
|
|
Loading…
Reference in a new issue