Bitcoin Core 28.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/abort.h>
#include <node/blockstorage.h>
#include <node/context.h>
#include <node/database_args.h>
#include <node/interface_ui.h>
#include <tinyformat.h>
#include <util/string.h>
#include <util/thread.h>
#include <util/translation.h>
#include <validation.h>
#include <string>
#include <utility>
Include dependency graph for base.cpp:

Go to the source code of this file.

Functions

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

◆ GetLocator()

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

Definition at line 37 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 128 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 25 of file base.cpp.

◆ SYNC_LOCATOR_WRITE_INTERVAL

constexpr auto SYNC_LOCATOR_WRITE_INTERVAL {30s}
constexpr

Definition at line 28 of file base.cpp.

◆ SYNC_LOG_INTERVAL

constexpr auto SYNC_LOG_INTERVAL {30s}
constexpr

Definition at line 27 of file base.cpp.