aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-10-26 17:56:39 +0200
committerRiccardo Spagni <ric@spagni.net>2015-10-26 17:56:55 +0200
commitdb68eca0de0949abe2955a8e496431d9be6fea1a (patch)
tree2e2f0edbb088e9e39ddf16008c88f5ede757d397 /src/blockchain_utilities/CMakeLists.txt
parentMerge pull request #440 (diff)
parentblockchain_utilities: new blockchain_dump diagnostic tool (diff)
downloadmonero-db68eca0de0949abe2955a8e496431d9be6fea1a.tar.xz
Merge pull request #442
43bca0d blockchain_utilities: new blockchain_dump diagnostic tool (moneromooo-monero) 5f397e4 Add functions to iterate through blocks, txes, outputs, key images (moneromooo-monero) 0a5a5e8 db_bdb: record numbers for recno databases start at 1 (moneromooo-monero) 50dfdc0 db_bdb: DB_KEYEMPTY is also not found for non-top recon fields (moneromooo-monero) 572780e blockchain_db: use the DNE exceptions where appropriate (moneromooo-monero)
Diffstat (limited to 'src/blockchain_utilities/CMakeLists.txt')
-rw-r--r--src/blockchain_utilities/CMakeLists.txt27
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")
+