aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db
Commit message (Collapse)AuthorAgeFilesLines
...
| * Move mdb_txn_safe implementation to cpp fileThomas Winget2015-05-152-51/+58
| |
* | Allow BlockchainLMDB to be opened in read-only modewarptangent2015-05-161-2/+6
|/ | | | Have blockchain_export use read-only mode when source is BlockchainLMDB.
* Update log statementswarptangent2015-05-081-1/+1
| | | | | Use filesystem path conversion to string() instead of c_str(). Windows may otherwise output an address.
* Only compile BerkeleyDB as an option in non-staticThomas Winget2015-04-071-0/+13
|
* Steps toward multiple dbs available -- workingThomas Winget2015-03-257-22/+50
| | | | | | | | | | | There will need to be some more refactoring for these changes to be considered complete/correct, but for now it's working. new daemon cli argument "--db-type", works for LMDB and BerkeleyDB. A good deal of refactoring is also present in this commit, namely Blockchain no longer instantiates BlockchainDB, but rather is passed a pointer to an already-instantiated BlockchainDB on init().
* BerkeleyDB implementation of BlockchainDB seems to be working!Thomas Winget2015-03-172-20/+20
|
* Pull blockchain changes into berkeleydb branchThomas Winget2015-03-173-12/+18
|\
| * Add support for database open with flagswarptangent2015-03-163-4/+3
| | | | | | | | | | | | | | | | | | | | | | Add support to: - BlockchainDB, BlockchainLMDB - blockchain_import utility to open LMDB database with one or more LMDB flags. Sample use: $ blockchain_import --database lmdb#nosync $ blockchain_import --database lmdb#nosync,nometasync
| * Add mdb_flags variable to LMDB database openwarptangent2015-03-161-1/+2
| |
| * Update and relocate comment that applies class widewarptangent2015-03-151-8/+14
| |
* | BlockchainBDB passes unit testsThomas Winget2015-03-171-1/+4
| |
* | BerkeleyDB Blockchain building, not working yetThomas Winget2015-03-163-183/+194
| | | | | | | | | | | | | | | | | | | | Everything except actually *using* BlockchainBDB is wired up, but the db itself is not yet working. Some error about user mem not large enough. I think I know what this error means, but I can't determine the cause. Notes: BerkeleyDB does not allow 0-indexing in its recno type databases, so block numbers *in the database* will be 1-indexed. Modifications to indexing have been made as needed.
* | CMake wiring, minor cleanup, minor test additionThomas Winget2015-03-161-0/+3
| | | | | | | | | | | | Make Cmake things aware of BerkeleyDB and BlockchainBDB Make the BlockchainDB unit tests aware of BlockchainBDB
* | BerkeleyDB BlockchainDB impl copy/paste/modifyThomas Winget2015-03-162-9/+1304
| | | | | | | | | | | | LMDB implementation code copy/paste/modified into the Berkeley DB implementation. Need to test if it builds, then if it works, and so on, but the code is all there.
* | Try to not pollute cryptonote namespaceThomas Winget2015-03-162-47/+47
| |
* | Initial commit of BDB BlockchainDB implementationThomas Winget2015-03-162-0/+678
|/ | | | | Basically verbatim copy of LMDB implementation, but with the guts ripped out and includes changed, etc.
* BlockchainDB implementations have names nowThomas Winget2015-03-133-0/+12
| | | | | | | | | | | In order to make things more general, BlockchainDB now has get_db_name() which should return a string with the "name" of that type of db. This "name" will be the subfolder name that holds that db type's files within the monero folder. Small bugfix: blockchain_converter was not correctly appending this in the prior hard-coded-string implementation of the subfolder data directory concept.
* Moved BlockchainDB into its own src/ subfolderThomas Winget2015-03-065-0/+2849
Ostensibly janitorial work, but should be more relevant later down the line. Things that depend on core cryptonote things (i.e. cryptonote_core) don't necessarily depend on BlockchainDB and thus have no need to have BlockchainDB baked in with them.