mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge bitcoin/bitcoin#23974: Make blockstorage globals private members of BlockManager
fa68a6c2fcscripted-diff: Rename touched member variables (MarcoFalke)facd3df21fMake blockstorage globals private members of BlockManager (MarcoFalke)faa8c2d7d7doc: Clarify nPruneAfterHeight for signet (MarcoFalke)fad381b2f8test: Load genesis block to allow flush (MarcoFalke)fab262174bMove blockstorage-related unload to BlockManager::Unload (MarcoFalke)fa467f3913move-only: Create WriteBlockIndexDB helper (MarcoFalke)fa88cfd3f9Move functions to BlockManager (MarcoFalke) Pull request description: Globals aren't too nice because they hide dependencies, also they make testing harder. Fix that by removing some. ACKs for top commit: Sjors: ACKfa68a6c2fcryanofsky: Code review ACKfa68a6c2fc. Nice changes! Tree-SHA512: 6abc5929a5e43a05e238276721d46a64a44f23dca18c2caa9775437a32351d6815d88b88757254686421531d0df13861bbd3a202e13a3192798d87a96abef65d
This commit is contained in:
@@ -43,6 +43,7 @@ BOOST_AUTO_TEST_CASE(validation_chainstate_resize_caches)
|
||||
c1.InitCoinsDB(
|
||||
/*cache_size_bytes=*/1 << 23, /*in_memory=*/true, /*should_wipe=*/false);
|
||||
WITH_LOCK(::cs_main, c1.InitCoinsCache(1 << 23));
|
||||
BOOST_REQUIRE(c1.LoadGenesisBlock()); // Need at least one block loaded to be able to flush caches
|
||||
|
||||
// Add a coin to the in-memory cache, upsize once, then downsize.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user