aboutsummaryrefslogtreecommitdiff
path: root/src/test/validation_chainstatemanager_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Pass mempool reference to chainstate constructorMarcoFalke2020-08-281-5/+6
|
* test: Simplify cs_main locksMarcoFalke2020-07-291-10/+3
|
* add ChainstateManager::MaybeRebalanceCaches()James O'Beirne2020-07-011-0/+54
| | | | | Aside from in unittests, this method is unused at the moment. It will be used in upcoming commits that enable utxo snapshot activation.
* Add CChainState::ResizeCoinsCachesJames O'Beirne2020-07-011-6/+5
| | | | | | | | | | Also adds CCoinsViewCache::ReallocateCache() to attempt to free memory that the cacheCoins's allocator may be hanging onto when downsizing the cache. Adds `CChainState::m_coins{tip,db}_cache_size_bytes` data members so that we can reference cache size on a per-chainstate basis for flushing.
* scripted-diff: Bump copyright headersMarcoFalke2020-04-161-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* test: Avoid accessing free'd memory in validation_chainstatemanager_testsMarcoFalke2020-04-151-3/+6
|
* test: add basic tests for ChainstateManagerJames O'Beirne2020-03-171-0/+104
Feedback incorporated from Russell Yanofsky. Co-authored-by: MarcoFalke <[email protected]>