aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
|
* tools: log to the correct filemoneromooo-monero2017-02-122-2/+6
|
* tools: set requested log levelmoneromooo-monero2017-02-123-2/+4
| | | | also move a couple logs from INFO to DEBUG
* extract some basic code from libcryptonote_core into libcryptonote_basickenshi842017-02-085-8/+8
|
* fixups in logging init calls, and add missing net context in a logmoneromooo-monero2017-01-162-2/+2
|
* Change logging to easylogging++moneromooo-monero2017-01-166-104/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
* blockchain_import: fix build after tx_pool::add_tx changesmoneromooo-monero2017-01-151-1/+1
|
* Use batch transactions when syncingHoward Chu2017-01-141-2/+2
| | | | | Faster throughput while avoiding corruption. I.e., makes running with --db-sync-mode safe more tolerable.
* rename cn_deserializeRiccardo Spagni2016-12-131-1/+1
|
* Revert "remove cn_deserialize"moneromooo-monero2016-10-302-0/+212
| | | | | | This is useful (to me). This reverts commit f968ccb9d3d34d163dc5638006e6b87c78ddfdb3.
* Dropped "bit" from bitmonero.Randi Joseph2016-09-261-4/+4
|
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-8/+16
| | | | | | | | | | | | | | Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
* fix nigglies, as pointed out by moneromooo-moneroRiccardo Spagni2016-09-031-8/+3
|
* fix blockchain utilities readmeRiccardo Spagni2016-09-031-42/+15
|
* remove blockchain_dumpRiccardo Spagni2016-09-032-444/+0
|
* rename blockchain utilsRiccardo Spagni2016-09-031-3/+3
|
* remove cn_deserializeRiccardo Spagni2016-09-032-217/+0
|
* remove original Cryptonote blockchain_storage blockchain formatmoneromooo-monero2016-08-2812-549/+7
|
* remove hf_starting_height dbmoneromooo-monero2016-07-131-4/+0
| | | | | | It's not really needed, it used to be an optimization for when that code was not using the db and needed to recalculate things fast on startup.
* cn_deserialize: add minergate datamoneromooo-monero2016-06-061-0/+1
|
* cn_deserialize: print extra nonce as hex datamoneromooo-monero2016-06-061-1/+1
|
* cn_deserialize: deserialize tx_extra toomoneromooo-monero2016-05-011-0/+21
|
* Revert "Print stack trace upon exceptions"moneromooo-monero2016-03-214-28/+28
| | | | | | Ain't nobody got time for link/cmake skullduggery. This reverts commit fff238ec94ac6d45fc18c315d7bc590ddfaad63d.