aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* updated copyright yearRiccardo Spagni2015-12-3114-14/+14
|
* Add missing semicolons after log statementsmoneromooo-monero2015-12-192-2/+2
|
* blockchain_db: make the indexing base a BlockchainDB virtual functionmoneromooo-monero2015-12-051-3/+1
|
* blockchain_dump: fix output key dump for BDB 1-based indicesmoneromooo-monero2015-12-051-2/+5
| | | | | | | | | | Berkeley DB uses 1 based indices for RECNO databases, and the implementation of BlockchainDB for Berkeley DB assumes 1 based indices are passed to the API, whereas the LMDB one assumes 0 based indices. This is all internally consisteny, but since the BDB code stores 1 based indices in the database, external users have to be aware of this, as the indices will be off by one depending on which DB is used.
* cn_deserialize: a new tool to decode blocks and transactionsmoneromooo-monero2015-11-222-0/+196
|
* Merge pull request #493Riccardo Spagni2015-11-213-0/+6
|\ | | | | | | | | f3724ae Fix startup crash when using a locale boost does not like (moneromooo-monero) 0c1dae3 i18n: allow language to be passed as a parameter (moneromooo-monero)
| * Fix startup crash when using a locale boost does not likemoneromooo-monero2015-11-213-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | There are various locale related bugs in various versions of boost, where exceptions are thrown in boost::filesystem APIs when the current locale is not to boost's liking. It's not clear what "not to boost's liking" means in detail, though "en" and "en_US.UTF-8" are not to its liking. Fix it by running a test function that's known to throw in such a case, and resetting LANG and LC_ALL to C if an exception is thrown. In simplewallet, the locale is queried before that so the correct translations will still be used.
* | Relay transactions when they linger too long in the poolmoneromooo-monero2015-11-211-1/+1
|/ | | | | | | | The last relayed time of a transaction is maintained, and transactions will be relayed again if they are still in the pool after a certain amount of time, which increases with the transaction's age. All such transactions are resent, whether or not they originated on the local node.
* blockchain_dump: fix build without berkeley dbmoneromooo-monero2015-10-301-0/+4
|
* blockchain_utilities: properly exit on errormoneromooo-monero2015-10-272-7/+7
| | | | Replace boolean values and exceptions where appropriate
* Build fixes for the old blockchain_storage versionmoneromooo-monero2015-10-261-2/+5
|
* blockchain_utilities: new blockchain_dump diagnostic toolmoneromooo-monero2015-10-252-0/+458
| | | | | | It dumps data from the blockchain to a JSON format, and is intended to help detect differences between data held in different database formats.
* blockchain_export can now export to a blocks.dat formatmoneromooo-monero2015-10-176-20/+331
| | | | | Also make the number of blocks endian independant, and add support for testnet
* bootstrap_file: do not try to create a directory with an empty namemoneromooo-monero2015-10-171-10/+13
| | | | | This will happen if the chosen output file does not have a path specified
* blockchain_import: Add --input-file optionwarptangent2015-08-141-1/+9
| | | | | | This option specifies the input file path for importing. The default remains <data-dir>/export/blockchain.raw
* blockchain_import: Updates for naming consistencywarptangent2015-08-141-15/+14
|
* Merge pull request #374Riccardo Spagni2015-08-143-16/+21
|\ | | | | | | 97c5faa blockchain_export: Add --output-file argument (warptangent)
| * blockchain_export: Add --output-file argumentwarptangent2015-08-143-16/+21
| | | | | | | | | | | | This option will export to the specified file path. The default file path remains <data-dir>/export/blockchain.raw
* | doc: hammer the fact that the raw file isn't blockchain.binmoneromooo-monero2015-08-141-1/+2
|/
* Merge pull request #334Riccardo Spagni2015-07-154-8/+8
|\ | | | | | | | | | | | | fd73d9c Check and resize if needed at batch transaction start (warptangent) f9e4afd blockchain_utilities: Increase debug statement's log level (warptangent) 699e4b3 blockchain_utilities: Pass expected number of blocks when starting batch (warptangent) 6e170c8 Optionally allow DB to know expected number of blocks at batch transaction start (warptangent)
| * blockchain_utilities: Increase debug statement's log levelwarptangent2015-07-111-1/+1
| |
| * blockchain_utilities: Pass expected number of blocks when starting batchwarptangent2015-07-112-4/+4
| |
| * Optionally allow DB to know expected number of blocks at batch transaction startwarptangent2015-07-111-3/+3
| | | | | | | | This will assist in a DB resize check.