cryptonote_format_utils_basic added to CMakeLists

master
moneroexamples 3 years ago
parent 489e947372
commit 0c8823074a

@ -143,8 +143,9 @@ set(LIBRARIES
device device
${WALLET_CRYPTO} ${WALLET_CRYPTO}
cryptonote_core cryptonote_core
cryptonote_protocol
cryptonote_basic cryptonote_basic
cryptonote_format_utils_basic
cryptonote_protocol
multisig multisig
daemonizer daemonizer
blocks blocks

@ -67,6 +67,13 @@ if (EXISTS ${MONERO_BUILD_DIR}/src/ringct/libringct_basic.a)
PROPERTY IMPORTED_LOCATION ${MONERO_BUILD_DIR}/src/ringct/libringct_basic.a) PROPERTY IMPORTED_LOCATION ${MONERO_BUILD_DIR}/src/ringct/libringct_basic.a)
endif() endif()
if (EXISTS ${MONERO_BUILD_DIR}/src/cryptonote_basic/libcryptonote_format_utils_basic.a)
message(STATUS FindMonero " found libcryptonote_format_utils_basic.a")
add_library(cryptonote_format_utils_basic STATIC IMPORTED)
set_property(TARGET cryptonote_format_utils_basic
PROPERTY IMPORTED_LOCATION ${MONERO_BUILD_DIR}/src/cryptonote_basic/libcryptonote_format_utils_basic.a)
endif()
message(STATUS ${MONERO_SOURCE_DIR}/build) message(STATUS ${MONERO_SOURCE_DIR}/build)

@ -1446,6 +1446,7 @@ show_block_hex(size_t block_height, bool complete_blk)
return string {"Failed to obtain complete block data "}; return string {"Failed to obtain complete block data "};
} }
//epee::byte_slice complete_block_data_slice;
std::string complete_block_data_str; std::string complete_block_data_str;
if(!epee::serialization::store_t_to_binary( if(!epee::serialization::store_t_to_binary(
@ -1455,6 +1456,12 @@ show_block_hex(size_t block_height, bool complete_blk)
return string {"Failed to obtain complete block data"}; return string {"Failed to obtain complete block data"};
} }
//std::string block_data_str(
// complete_block_data_slice.begin(),
// complete_block_data_slice.end());
//return epee::string_tools
// ::buff_to_hex_nodelimer(block_data_str);
return epee::string_tools return epee::string_tools
::buff_to_hex_nodelimer(complete_block_data_str); ::buff_to_hex_nodelimer(complete_block_data_str);
} }

Loading…
Cancel
Save