aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities
Commit message (Collapse)AuthorAgeFilesLines
* blockchain_blackball: fix build with CLANG 5moneromooo-monero2018-04-121-1/+2
| | | | It doesn't like the explicit NULL dereference (which is fine, honest)
* ringdb: use the genesis block as a db namemoneromooo-monero2018-03-161-1/+3
| | | | | | | This will avoid careless forkers polluting the shared database even if they make their own chain. They'll then automatically start using another subdb, and any key-reusing fork of those forks will reuse their subdbs.
* new blockchain_usage tool, reports on output usagemoneromooo-monero2018-03-162-0/+289
|
* wallet: make ringdb an object with database statemoneromooo-monero2018-03-161-4/+6
|
* blockchain_utilities: new blockchain_blackball toolmoneromooo-monero2018-03-162-0/+460
| | | | | | | | | | 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
* Stagenetstoffu2018-03-052-5/+16
|
* options: remove testnet-* optionswhythat2018-02-162-7/+3
|
* blockchain_export: fix buffer overflow in exportermoneromooo-monero2018-02-021-1/+1
| | | | Coverity 182550
* Update 2018 copyrightxmr-eric2018-01-2610-10/+10
|
* Merge pull request #2997Riccardo Spagni2018-01-101-2/+2
|\ | | | | | | 7c4f01a7 blockchain_import: more informative verification switch (moneromooo-monero)
| * blockchain_import: more informative verification switchmoneromooo-monero2017-12-231-2/+2
| |
* | Add misc hardening flags to the cmake machinerymoneromooo-monero2017-12-311-2/+2
| | | | | | | | See https://wiki.debian.org/Hardening#User_Space
* | use const refs in for loops for non tiny typesmoneromooo-monero2017-12-181-1/+1
|/
* move includes around to lessen overall loadmoneromooo-monero2017-12-163-2/+5
|
* Merge pull request #2778Riccardo Spagni2017-11-151-9/+8
|\ | | | | | | c957795b fix output_stream_header memory leak (MaxXor)
| * fix output_stream_header memory leakMaxXor2017-11-081-9/+8
| |
* | Merge pull request #2736Riccardo Spagni2017-11-142-17/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
| * | move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-142-17/+8
| |/ | | | | | | Those have no reason to be in a generic module
* / remove "using namespace std" from headersmoneromooo-monero2017-11-143-5/+5
|/ | | | | | | It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
* blockchain_utilities: Add monero-blockchain-{ex,im}port binaries toBertrand Jacquin2017-10-151-0/+2
| | | | | | | | | | | default install targets Binaries available to download on https://getmonero.org/downloads/ as embedding monerod, monero-wallet-{cli,rpc} and monero-blockchain-{ex,im}port. This change synchronise download results with a manual build from source
* Fix compiler warnings with Clang 6.0.0.Vasil Dimov2017-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | monero/src/cryptonote_protocol/block_queue.cpp:208:44: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] static const boost::uuids::uuid uuid0 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { } monero/src/wallet/wallet_rpc_server.cpp:1895:43: error: lambda capture 'wal' is not used [-Werror,-Wunused-lambda-capture] tools::signal_handler::install([&wrpc, &wal](int) { ^ monero/src/cryptonote_protocol/cryptonote_protocol_handler.inl:1616:40: error: lambda capture 'arg' is not used [-Werror,-Wunused-lambda-capture] m_p2p->for_each_connection([this, &arg, &fluffy_arg, &exclude_context, &fullConnections... ^ monero/src/cryptonote_protocol/cryptonote_protocol_handler.inl:1616:46: error: lambda capture 'fluffy_arg' is not used [-Werror,-Wunused-lambda-capture] m_p2p->for_each_connection([this, &arg, &fluffy_arg, &exclude_context, &fullConnections... ^ monero/src/blockchain_utilities/blockchain_export.cpp:181:3: error: bool literal returned from 'main' [-Werror,-Wmain] CHECK_AND_ASSERT_MES(r, false, "Failed to initialize source blockchain storage"); ^ ~~~~~ monero/contrib/epee/include/misc_log_ex.h:180:97: note: expanded from macro 'CHECK_AND_ASSERT_MES' ...fail_ret_val, message) do{if(!(expr)) {LOG_ERROR(message); return fail_ret_val;};}while(0) ^ ~~~~~~~~~~~~ monero/src/blockchain_utilities/blockchain_export.cpp:195:3: error: bool literal returned from 'main' [-Werror,-Wmain] CHECK_AND_ASSERT_MES(r, false, "Failed to export blockchain raw data"); ^ ~~~~~ monero/contrib/epee/include/misc_log_ex.h:180:97: note: expanded from macro 'CHECK_AND_ASSERT_MES' ...fail_ret_val, message) do{if(!(expr)) {LOG_ERROR(message); return fail_ret_val;};}while(0) ^ ~~~~~~~~~~~~
* Merge pull request #2589Riccardo Spagni2017-10-152-6/+6
|\ | | | | | | 8f0cea63 add a command_line function to check for defaulted options (moneromooo-monero)
| * add a command_line function to check for defaulted optionsmoneromooo-monero2017-10-062-6/+6
| |
* | Merge pull request #2568Riccardo Spagni2017-10-152-2/+2
|\ \ | | | | | | | | | 7130cf0c Add tools::on_startup, and warn about glibc 2.25 bug if found (moneromooo-monero)
| * | Add tools::on_startup, and warn about glibc 2.25 bug if foundmoneromooo-monero2017-10-142-2/+2
| |/ | | | | | | https://sourceware.org/bugzilla/show_bug.cgi?id=21778
* | Merge pull request #2567Riccardo Spagni2017-10-151-3/+0
|\ \ | | | | | | | | | 54940d8c blockchain_import: remove a few commented out obsolete lines (moneromooo-monero)
| * | blockchain_import: remove a few commented out obsolete linesmoneromooo-monero2017-10-031-3/+0
| |/
* | Merge pull request #2469Riccardo Spagni2017-10-153-3/+32
|\ \ | |/ |/| | | 7adceee6 precomputed block hashes are now in blocks of N (currently 256) (moneromooo-monero)
| * precomputed block hashes are now in blocks of N (currently 256)moneromooo-monero2017-09-183-3/+32
| | | | | | | | This shaves a lot of space off binaries
* | Merge pull request #2457Riccardo Spagni2017-09-253-56/+109
|\ \ | | | | | | | | | d2d8a41c Use actual batch size for resize estimates (Howard Chu)
| * | Use actual batch size for resize estimatesHoward Chu2017-09-173-56/+109
| |/ | | | | | | | | | | | | And optimize import startup: Remember start_height position during initial count_blocks pass to avoid having to reread entire file again to arrive at start_height
* / build: auto update version info without manually deleting version.hstoffu2017-09-211-4/+2
|/
* Merge pull request #2384Riccardo Spagni2017-09-023-26/+27
|\ | | | | | | | | | | 4e0e4e99 blockchain_import: warn for chunks over 500000, not 100000 (moneromooo-monero) 5b29e87f blockchain_import: properly cleanup core/db on exit (moneromooo-monero) e167c4d9 blockchain_import: do not error out on truncated files (moneromooo-monero)
| * blockchain_import: warn for chunks over 500000, not 100000moneromooo-monero2017-09-013-4/+5
| | | | | | | | We have a lot of 350000 byte blocks now.
| * blockchain_import: properly cleanup core/db on exitmoneromooo-monero2017-09-011-19/+9
| |
| * blockchain_import: do not error out on truncated filesmoneromooo-monero2017-09-011-3/+13
| | | | | | | | This will happen often when downloading from a live file
* | Fix blockchain_import wedge on exception in cleanup_handle_incoming_blocksmoneromooo-monero2017-08-291-1/+5
|/
* More DB support cleanupHoward Chu2017-08-202-60/+4
| | | | | | | | Hide DB types from db_types.h - no reason to recompile dependencies when DB types change. Also remove lingering in-memory DB references, they've been obsolete since 9e82b694da120708652871b55f639d1ef306a7ec
* DB cleanupHoward Chu2017-08-193-95/+8
| | | | | Hide LMDB-specific stuff behind blockchain_db.h. Nobody besides blockchain_db.cpp should ever be including DB-specific headers any more.
* Merge pull request #2248Riccardo Spagni2017-08-152-215/+0
|\ | | | | | | | | | | 71e28760 debug_utilities: only build for debug builds (moneromooo-monero) 55e150ff debug_utilities: new object-sizes debug tool (moneromooo-monero) fbaf5375 cn_deserialize: move to new debug_utilities subdirectory (moneromooo-monero)
| * cn_deserialize: move to new debug_utilities subdirectorymoneromooo-monero2017-08-032-215/+0
| |
* | blockchain_import: much faster when verifying with cryptonote::coremoneromooo-monero2017-08-073-287/+152
|/ | | | | | | | | | | | | | Quick test with the first 56569 blocks from mainnet version verify batch time old 0 200 1:16 new 0 200 0:57 old 0 5000 0:53 new 0 5000 0:51 old 1 200 est > 1h new 1 200 10:21 old 1 5000 est > 1h new 1 5000 8:27
* Move txpool to the databasemoneromooo-monero2017-05-252-3/+3
| | | | | | | Integration could go further (ie, return_tx_to_pool calls should not be needed anymore, possibly other things). poolstate.bin is now obsolete.
* blockchain_import: make --log-level understand categoriesmoneromooo-monero2017-03-051-3/+6
|
* blockchain_export: make --log-level understand categoriesmoneromooo-monero2017-03-051-4/+6
|
* blockchain_import: error out nicely on exceptionsmoneromooo-monero2017-03-051-0/+4
|
* blockchain_export: error out nicely on exceptionsmoneromooo-monero2017-03-051-0/+5
|
* Fix double-importHoward Chu2017-03-031-8/+10
| | | | Incomplete ifdef cleanup in 9e82b694da120708652871b55f639d1ef306a7ec
* blockchain_utilities: link against blockchain_dbmoneromooo-monero2017-02-241-0/+1
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-2112-12/+12
|