aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/CMakeLists.txt
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-26 16:39:40 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-16 10:32:39 +0000
commitdf6fad4c627b99a5c3e2b91b69a0a1cc77c4be14 (patch)
tree19f8a487928dc1d702bb9dad8625cbdf7a4e3b62 /src/blockchain_utilities/CMakeLists.txt
parentwallet: add an output blackball list to avoid using those in rings (diff)
downloadmonero-df6fad4c627b99a5c3e2b91b69a0a1cc77c4be14.tar.xz
blockchain_utilities: new blockchain_blackball tool
It scans for known spent outputs and stores their public keys in a database which can then be read by the wallet, which can then avoid using those as fake outs in new transactions. Usage: monero-blockchain-blackball db1 db2... This uses the shared database in ~/.shared-ringdb
Diffstat (limited to 'src/blockchain_utilities/CMakeLists.txt')
-rw-r--r--src/blockchain_utilities/CMakeLists.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/blockchain_utilities/CMakeLists.txt b/src/blockchain_utilities/CMakeLists.txt
index a701bc605..4b2df46d8 100644
--- a/src/blockchain_utilities/CMakeLists.txt
+++ b/src/blockchain_utilities/CMakeLists.txt
@@ -67,6 +67,20 @@ monero_private_headers(blockchain_export
${blockchain_export_private_headers})
+set(blockchain_blackball_sources
+ blockchain_blackball.cpp
+ )
+
+set(blockchain_blackball_private_headers
+ bootstrap_file.h
+ blocksdat_file.h
+ bootstrap_serialization.h
+ )
+
+monero_private_headers(blockchain_blackball
+ ${blockchain_blackball_private_headers})
+
+
monero_add_executable(blockchain_import
${blockchain_import_sources}
${blockchain_import_private_headers}
@@ -117,3 +131,26 @@ set_property(TARGET blockchain_export
OUTPUT_NAME "monero-blockchain-export")
install(TARGETS blockchain_export DESTINATION bin)
+monero_add_executable(blockchain_blackball
+ ${blockchain_blackball_sources}
+ ${blockchain_blackball_private_headers})
+
+target_link_libraries(blockchain_blackball
+ PRIVATE
+ wallet
+ cryptonote_core
+ blockchain_db
+ p2p
+ version
+ epee
+ ${Boost_FILESYSTEM_LIBRARY}
+ ${Boost_SYSTEM_LIBRARY}
+ ${Boost_THREAD_LIBRARY}
+ ${CMAKE_THREAD_LIBS_INIT}
+ ${EXTRA_LIBRARIES})
+
+set_property(TARGET blockchain_blackball
+ PROPERTY
+ OUTPUT_NAME "monero-blockchain-blackball")
+install(TARGETS blockchain_blackball DESTINATION bin)
+