Permalink
Browse files

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
  • Loading branch information...
moneromooo-monero committed Feb 26, 2018
1 parent d29ea04 commit df6fad4c627b99a5c3e2b91b69a0a1cc77c4be14
Showing with 460 additions and 0 deletions.
  1. +37 −0 src/blockchain_utilities/CMakeLists.txt
  2. +423 −0 src/blockchain_utilities/blockchain_blackball.cpp
@@ -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)

Oops, something went wrong.

0 comments on commit df6fad4

Please sign in to comment.