Bitcoin Core  25.99.0
P2P Digital Currency
Functions | Variables
base.cpp File Reference
#include <chainparams.h>
#include <common/args.h>
#include <index/base.h>
#include <interfaces/chain.h>
#include <kernel/chain.h>
#include <logging.h>
#include <node/blockstorage.h>
#include <node/context.h>
#include <node/database_args.h>
#include <node/interface_ui.h>
#include <shutdown.h>
#include <tinyformat.h>
#include <util/syscall_sandbox.h>
#include <util/thread.h>
#include <util/translation.h>
#include <validation.h>
#include <warnings.h>
#include <string>
#include <utility>
Include dependency graph for base.cpp:

Go to the source code of this file.

Functions

template<typename... Args>
static void FatalError (const char *fmt, const Args &... args)
 
CBlockLocator GetLocator (interfaces::Chain &chain, const uint256 &block_hash)
 
static const CBlockIndexNextSyncBlock (const CBlockIndex *pindex_prev, CChain &chain) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
 

Variables

constexpr uint8_t DB_BEST_BLOCK {'B'}
 
constexpr auto SYNC_LOG_INTERVAL {30s}
 
constexpr auto SYNC_LOCATOR_WRITE_INTERVAL {30s}
 

Function Documentation

◆ FatalError()

template<typename... Args>
static void FatalError ( const char *  fmt,
const Args &...  args 
)
static

Definition at line 34 of file base.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetLocator()

CBlockLocator GetLocator ( interfaces::Chain chain,
const uint256 block_hash 
)

Definition at line 43 of file base.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NextSyncBlock()

static const CBlockIndex* NextSyncBlock ( const CBlockIndex pindex_prev,
CChain chain 
)
static

Definition at line 156 of file base.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DB_BEST_BLOCK

constexpr uint8_t DB_BEST_BLOCK {'B'}
constexpr

Definition at line 28 of file base.cpp.

◆ SYNC_LOCATOR_WRITE_INTERVAL

constexpr auto SYNC_LOCATOR_WRITE_INTERVAL {30s}
constexpr

Definition at line 31 of file base.cpp.

◆ SYNC_LOG_INTERVAL

constexpr auto SYNC_LOG_INTERVAL {30s}
constexpr

Definition at line 30 of file base.cpp.