Bitcoin Core 29.99.0
P2P Digital Currency
validation.h
Go to the documentation of this file.
1// Copyright (c) 2020-2022 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_TEST_UTIL_VALIDATION_H
6#define BITCOIN_TEST_UTIL_VALIDATION_H
7
8#include <validation.h>
9
11
14 void DisableNextWrite();
16 void ResetIbd();
18 void JumpOutOfIbd();
19};
20
22{
23public:
24 static void BlockConnected(
25 ChainstateRole role,
27 const std::shared_ptr<const CBlock>& block,
28 const CBlockIndex* pindex);
29};
30
31#endif // BITCOIN_TEST_UTIL_VALIDATION_H
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: chain.h:141
Implement this to subscribe to events generated in validation and mempool.
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Definition: validation.h:898
static void BlockConnected(ChainstateRole role, CValidationInterface &obj, const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex)
Definition: validation.cpp:34
ChainstateRole
This enum describes the various roles a specific Chainstate instance can take.
Definition: chain.h:25
void DisableNextWrite()
Disable the next write of all chainstates.
Definition: validation.cpp:12
void JumpOutOfIbd()
Toggle IsInitialBlockDownload from true to false.
Definition: validation.cpp:27
void ResetIbd()
Reset the ibd cache to its initial state.
Definition: validation.cpp:21