aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter/CMakeLists.txt
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-02-10 15:13:32 -0800
committerwarptangent <warptangent@inbox.com>2015-03-16 00:26:51 -0700
commit260cc56faed3ef9f9c44c5d021dd88d591e33a9e (patch)
treedacdf765fe6ce549602145317f0467774b823d14 /src/blockchain_converter/CMakeLists.txt
parentBlockchain: add get_db() accessor, needed for blockchain_import (diff)
downloadmonero-260cc56faed3ef9f9c44c5d021dd88d591e33a9e.tar.xz
Add blockchain_import utility
This imports to the blockchain database from an exported blockchain file. It can be used to bootstrap a new database or to add blocks to an existing one. Supports: - both the in-memory and LMDB implementations - optional: batching, verification, testnet See help for usage. Based on work by tomerkon. See https://github.com/tomerkon src/cryptonote_core/bootfileloader.{h,cpp}
Diffstat (limited to 'src/blockchain_converter/CMakeLists.txt')
-rw-r--r--src/blockchain_converter/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/blockchain_converter/CMakeLists.txt b/src/blockchain_converter/CMakeLists.txt
index a91624f4f..cc400d927 100644
--- a/src/blockchain_converter/CMakeLists.txt
+++ b/src/blockchain_converter/CMakeLists.txt
@@ -35,6 +35,18 @@ set(blockchain_converter_private_headers)
bitmonero_private_headers(blockchain_converter
${blockchain_converter_private_headers})
+set(blockchain_import_sources
+ blockchain_import.cpp
+ )
+
+set(blockchain_import_private_headers
+ import.h
+ fake_core.h
+ )
+
+bitmonero_private_headers(blockchain_import
+ ${blockchain_import_private_headers})
+
if (BLOCKCHAIN_DB STREQUAL DB_LMDB)
bitmonero_add_executable(blockchain_converter
${blockchain_converter_sources}
@@ -52,3 +64,18 @@ set_property(TARGET blockchain_converter
PROPERTY
OUTPUT_NAME "blockchain_converter")
endif ()
+
+bitmonero_add_executable(blockchain_import
+ ${blockchain_import_sources}
+ ${blockchain_import_private_headers})
+
+target_link_libraries(blockchain_import
+ LINK_PRIVATE
+ cryptonote_core
+ ${CMAKE_THREAD_LIBS_INIT})
+
+add_dependencies(blockchain_import
+ version)
+set_property(TARGET blockchain_import
+ PROPERTY
+ OUTPUT_NAME "blockchain_import")