Bitcoin Core  22.99.0
P2P Digital Currency
Functions
validation_chainstatemanager_tests.cpp File Reference
#include <chainparams.h>
#include <consensus/validation.h>
#include <node/utxo_snapshot.h>
#include <random.h>
#include <rpc/blockchain.h>
#include <sync.h>
#include <test/util/chainstate.h>
#include <test/util/setup_common.h>
#include <uint256.h>
#include <validation.h>
#include <validationinterface.h>
#include <tinyformat.h>
#include <vector>
#include <boost/test/unit_test.hpp>
Include dependency graph for validation_chainstatemanager_tests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (chainstatemanager)
 Basic tests for ChainstateManager. More...
 
 BOOST_AUTO_TEST_CASE (chainstatemanager_rebalance_caches)
 Test rebalancing the caches associated with each chainstate. More...
 
 BOOST_FIXTURE_TEST_CASE (chainstatemanager_activate_snapshot, TestChain100Setup)
 Test basic snapshot activation. More...
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( chainstatemanager  )

Basic tests for ChainstateManager.

First create a legacy (IBD) chainstate, then create a snapshot chainstate.

Definition at line 28 of file validation_chainstatemanager_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( chainstatemanager_rebalance_caches  )

Test rebalancing the caches associated with each chainstate.

Definition at line 105 of file validation_chainstatemanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( chainstatemanager_activate_snapshot  ,
TestChain100Setup   
)

Test basic snapshot activation.

Definition at line 158 of file validation_chainstatemanager_tests.cpp.

Here is the call graph for this function: