diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-25 12:30:08 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-25 12:36:16 +0000 |
commit | 43bca0d2f71b8d9c0da19ba5fd00283ebf0b01e4 (patch) | |
tree | b20a1e7f6b286fd1605de7481e66a7a9709831c8 /src/blockchain_utilities/CMakeLists.txt | |
parent | Add functions to iterate through blocks, txes, outputs, key images (diff) | |
download | monero-43bca0d2f71b8d9c0da19ba5fd00283ebf0b01e4.tar.xz |
blockchain_utilities: new blockchain_dump diagnostic tool
It dumps data from the blockchain to a JSON format, and is
intended to help detect differences between data held in
different database formats.
Diffstat (limited to 'src/blockchain_utilities/CMakeLists.txt')
-rw-r--r-- | src/blockchain_utilities/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/blockchain_utilities/CMakeLists.txt b/src/blockchain_utilities/CMakeLists.txt index 7be9d95f7..f88180686 100644 --- a/src/blockchain_utilities/CMakeLists.txt +++ b/src/blockchain_utilities/CMakeLists.txt @@ -67,6 +67,15 @@ bitmonero_private_headers(blockchain_export ${blockchain_export_private_headers}) +set(blockchain_dump_sources + blockchain_dump.cpp + ) + +set(blockchain_dump_private_headers) + +bitmonero_private_headers(blockchain_dump + ${blockchain_dump_private_headers}) + if (BLOCKCHAIN_DB STREQUAL DB_LMDB) bitmonero_add_executable(blockchain_converter @@ -120,3 +129,21 @@ add_dependencies(blockchain_export set_property(TARGET blockchain_export PROPERTY OUTPUT_NAME "blockchain_export") + +bitmonero_add_executable(blockchain_dump + ${blockchain_dump_sources} + ${blockchain_dump_private_headers}) + +target_link_libraries(blockchain_dump + LINK_PRIVATE + cryptonote_core + blockchain_db + p2p + ${CMAKE_THREAD_LIBS_INIT}) + +add_dependencies(blockchain_dump + version) +set_property(TARGET blockchain_dump + PROPERTY + OUTPUT_NAME "blockchain_dump") + |