aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.h
Commit message (Collapse)AuthorAgeFilesLines
* Make appropriate getter-routines "const" in CCoinsView.Daniel Kraft2014-08-261-4/+4
| | | | Mark the "Get"/"Have" routines in CCoinsView and subclasses as "const".
* Allow BatchWrite to destroy its input, reducing copyingPieter Wuille2014-08-241-1/+1
|
* typedef std::map<uint256, CCoins> to CCoinsMapWladimir J. van der Laan2014-07-011-1/+1
| | | | | | | This makes it possible to switch to a more efficient map type without changing all occurences manually. Merges half of #4413.
* Move {Get,Set}Compact from bignum to uint256Pieter Wuille2014-05-091-2/+0
|
* Change new constants in txdb.h to int64_tWladimir J. van der Laan2014-02-181-3/+3
| | | | | A shift overflow was happening when using these to check against in init.cpp. Fixes #3702.
* add constants for shared (GUI/core) -dbcache settingsPhilip Kaufmann2014-02-171-0/+7
| | | | - adds nDefaultDbCache, nMaxDbCache and nMinDbCache in txdb.h
* Make CCoinsView use block hashes instead of indicesPieter Wuille2013-11-101-3/+3
|
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-1/+11
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Rename leveldb.{h,cpp} to leveldbwrapper.{h,cpp}.Brandon Dahler2013-11-081-3/+3
|
* Do not use the redundant BestInvalidWork record in the block database.Pieter Wuille2013-11-011-1/+0
| | | | | | As block index entries have a flag for marking invalid blocks, the 'best invalid work' information can be derived from there. In addition, remove the global from main.h
* Bump Year Number to 2013super32013-10-201-1/+1
|
* Merge pull request #2221 from sipa/perfoGavin Andresen2013-02-221-3/+3
|\ | | | | Various performance tweaks to CCoinsView
| * Various performance tweaks to CCoinsViewPieter Wuille2013-01-261-3/+3
| | | | | | | | | | | | | | | | * Pass txid's to CCoinsView functions by reference instead of by value * Add a method to swap CCoins, and use it in some places to avoid a allocating copy + destruct. * Optimize CCoinsViewCache::FetchCoins to do only a single search through the backing map.
* | Rename database directoriesPieter Wuille2013-01-281-2/+2
|/
* Add optional transaction index to databasesPieter Wuille2013-01-181-0/+4
| | | | | | | | | By specifying -txindex when initializing the database, a txid-to-diskpos index is maintained in the blktree database. This database is used to help answering getrawtransaction() RPC queries, when enabled. Changing the -txindex value requires a -reindex; the client will abort at startup if the database and the specified -txindex mismatch.
* Add -reindex, to perform in-place reindexing of block chain filesPieter Wuille2012-11-091-2/+4
| | | | | | | Flushes the blktree/ and coins/ databases, and reindexes the block chain files, as if their contents was loaded via -loadblock. Based on earlier work by Jeff Garzik.
* Cache size optimizationsPieter Wuille2012-11-041-2/+2
|
* Remove BDB block database supportPieter Wuille2012-10-201-8/+41
|
* LevelDB block and coin databasesPieter Wuille2012-10-201-0/+14
Split off CBlockTreeDB and CCoinsViewDB into txdb-*.{cpp,h} files, implemented by either LevelDB or BDB. Based on code from earlier commits by Mike Hearn in his leveldb branch.