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

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (validation_chainstate_resize_caches)
 Test resizing coins-related CChainState caches during runtime. More...
 
 BOOST_FIXTURE_TEST_CASE (chainstate_update_tip, TestChain100Setup)
 Test UpdateTip behavior for both active and background chainstates. More...
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( validation_chainstate_resize_caches  )

Test resizing coins-related CChainState caches during runtime.

Create and add a Coin with DynamicMemoryUsage of 80 bytes to the given view.

Definition at line 23 of file validation_chainstate_tests.cpp.

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( chainstate_update_tip  ,
TestChain100Setup   
)

Test UpdateTip behavior for both active and background chainstates.

When run on the background chainstate, UpdateTip should do a subset of what it does for the active chainstate.

Definition at line 83 of file validation_chainstate_tests.cpp.

Here is the call graph for this function: