summaryrefslogtreecommitdiff
path: root/src/blockchain_utilities
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Print stack trace upon exceptionsmoneromooo-monero2016-03-194-28/+28
| | | | Useful for debugging users' logs
* switch default utilities DB to lmdb, update checkpoints.datRiccardo Spagni2016-03-121-3/+6
|
* Merge pull request #705Riccardo Spagni2016-03-051-4/+54
|\ | | | | | | f7ed167 blockchain_utilities: Update documentation (warptangent)
| * blockchain_utilities: Update documentationwarptangent2016-03-051-4/+54
| |
* | blockchain_export: Support BerkeleyDBwarptangent2016-03-051-4/+65
| | | | | | | | | | | | | | | | | | | | | | | | TEST: blockchain_export -h This should show "berkeley" as an available option to --database. With an existing BerkeleyDB database, run: blockchain_export --database berkeley
* | blockchain_export: Move DB implementation includeswarptangent2016-03-052-2/+2
|/
* move g_test_dbg_lock_sleep from a global to a function level staticmoneromooo-monero2016-02-225-10/+0
| | | | | This avoids the need to define that variable in every program which uses epee.
* blockchain_import: Pass ARCH_WIDTH macro if 32-bit or not.warptangent2016-02-181-4/+4
| | | | This also avoids warnings.
* Merge pull request #674Riccardo Spagni2016-02-183-4/+14
|\ | | | | | | 05e7ac0 blockchain_import: Check bit width for more than just WIN32 (warptangent)
| * blockchain_import: Check bit width for more than just WIN32warptangent2016-02-173-4/+14
| | | | | | | | | | | | | | | | Pass the CMake bit width setting to compile flags for blockchain_import and blockchain_converter. For LMDB on 32-bit, hyc has found that batch size of 100 appears to be a good default.
* | Fix cffc411c9025e1d28a8b6e32c53c83ba113d9204Howard Chu2016-02-171-0/+2
|/ | | | Don't include bdb header unless defined(BERKELEY_DB)
* blockchain_import: Build string for db type listwarptangent2016-02-141-2/+15
|
* blockchain_import: Add mode argument representing multiple DB flagswarptangent2016-02-141-31/+82
| | | | | | | | | | | | | | | | | | | | These modes match those optionally provided as part of the daemon's --db-type argument. Argument after the # is interpreted as a composite mode if there's only one (no comma separated arguments). Sample usage: blockchain_import --database lmdb#fastest blockchain_import --database berkeley#fastest Multiple specific DB flags are still supported, e.g. blockchain_import --database lmdb#nosync,nordahead blockchain_import --database berkeley#txn_nosync
* blockchain_import: Support BerkeleyDBwarptangent2016-02-142-21/+67
|
* blockchain_import: Add database type argumentwarptangent2016-02-142-4/+4
| | | | Default to LMDB.
* blockchain_import: Make LMDB-specific names generalwarptangent2016-02-142-33/+33
| | | | | Also update terms to better distinguish blockchain management/engine from database type.
* blockchain_utilities: remove unused num_blocks variablemoneromooo-monero2016-02-081-2/+0
|
* blockchain_import: Get hard fork version from HardForkwarptangent2016-02-081-4/+1
| | | | Replace temporary assignment that used hardcoded values.
* Move HardFork DB update to BlockchainDB::add_block()warptangent2016-02-081-3/+0
| | | | | | | Ensures the database is consistent. Also simplifes blockchain_import in that verify mode off has less to work around.
* blockchain_import: Add hard fork data for each block when verify mode is offwarptangent2016-02-081-0/+3
|
* blockchain_utilities: Have fake_core create HardFork objectwarptangent2016-02-081-1/+13
| | | | | The HardFork object is needed for the importer to update the hard fork data when verify mode is off.
* fake_core: Check if hard fork subdbs need reset at startwarptangent2016-02-081-0/+3
|
* blockchain_import: Add --drop-hard-fork commandwarptangent2016-02-081-0/+11
|
* blockchain_import: Add exception to log outputwarptangent2016-02-081-1/+1
|
* Fix V1/V2 use of hard fork related parametersmoneromooo-monero2016-01-291-1/+7
| | | | | Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
* Fix hf when import with verify offHoward Chu2016-01-151-0/+1
| | | | Delete the hf tables, so the next open will rescan and regenerate
* update versionRiccardo Spagni2015-12-315-5/+5
|