Bitcoin ABC 0.30.5
P2P Digital Currency
Public Attributes | List of all members
kernel::ChainstateManagerOpts Struct Reference

An options struct for ChainstateManager, more ergonomically referred to as ChainstateManager::Options due to the using-declaration in ChainstateManager. More...

#include <chainstatemanager_opts.h>

Collaboration diagram for kernel::ChainstateManagerOpts:
[legend]

Public Attributes

const Configconfig
 
fs::path datadir
 
const std::function< NodeClock::time_point()> adjusted_time_callback
 
std::optional< bool > check_block_index {}
 
bool checkpoints_enabled {DEFAULT_CHECKPOINTS_ENABLED}
 
std::optional< arith_uint256minimum_chain_work {}
 If set, it will override the minimum work we will assume exists on some valid chain. More...
 
std::optional< BlockHashassumed_valid_block {}
 If set, it will override the block hash whose ancestors we will assume to have valid scripts without checking them. More...
 
std::chrono::seconds max_tip_age {DEFAULT_MAX_TIP_AGE}
 If the tip is older than this, the node is considered to be in initial block download. More...
 
DBOptions block_tree_db {}
 
DBOptions coins_db {}
 
CoinsViewOptions coins_view {}
 
Notificationsnotifications
 
bool store_recent_headers_time {DEFAULT_STORE_RECENT_HEADERS_TIME}
 If set, store and load the last few block headers reception time to speed up RTT bootstraping. More...
 

Detailed Description

An options struct for ChainstateManager, more ergonomically referred to as ChainstateManager::Options due to the using-declaration in ChainstateManager.

Definition at line 33 of file chainstatemanager_opts.h.

Member Data Documentation

◆ adjusted_time_callback

const std::function<NodeClock::time_point()> kernel::ChainstateManagerOpts::adjusted_time_callback
Initial value:
{
nullptr}

Definition at line 36 of file chainstatemanager_opts.h.

◆ assumed_valid_block

std::optional<BlockHash> kernel::ChainstateManagerOpts::assumed_valid_block {}

If set, it will override the block hash whose ancestors we will assume to have valid scripts without checking them.

Definition at line 45 of file chainstatemanager_opts.h.

◆ block_tree_db

DBOptions kernel::ChainstateManagerOpts::block_tree_db {}

Definition at line 49 of file chainstatemanager_opts.h.

◆ check_block_index

std::optional<bool> kernel::ChainstateManagerOpts::check_block_index {}

Definition at line 38 of file chainstatemanager_opts.h.

◆ checkpoints_enabled

bool kernel::ChainstateManagerOpts::checkpoints_enabled {DEFAULT_CHECKPOINTS_ENABLED}

Definition at line 39 of file chainstatemanager_opts.h.

◆ coins_db

DBOptions kernel::ChainstateManagerOpts::coins_db {}

Definition at line 50 of file chainstatemanager_opts.h.

◆ coins_view

CoinsViewOptions kernel::ChainstateManagerOpts::coins_view {}

Definition at line 51 of file chainstatemanager_opts.h.

◆ config

const Config& kernel::ChainstateManagerOpts::config

Definition at line 34 of file chainstatemanager_opts.h.

◆ datadir

fs::path kernel::ChainstateManagerOpts::datadir

Definition at line 35 of file chainstatemanager_opts.h.

◆ max_tip_age

std::chrono::seconds kernel::ChainstateManagerOpts::max_tip_age {DEFAULT_MAX_TIP_AGE}

If the tip is older than this, the node is considered to be in initial block download.

Definition at line 48 of file chainstatemanager_opts.h.

◆ minimum_chain_work

std::optional<arith_uint256> kernel::ChainstateManagerOpts::minimum_chain_work {}

If set, it will override the minimum work we will assume exists on some valid chain.

Definition at line 42 of file chainstatemanager_opts.h.

◆ notifications

Notifications& kernel::ChainstateManagerOpts::notifications

Definition at line 52 of file chainstatemanager_opts.h.

◆ store_recent_headers_time

bool kernel::ChainstateManagerOpts::store_recent_headers_time {DEFAULT_STORE_RECENT_HEADERS_TIME}

If set, store and load the last few block headers reception time to speed up RTT bootstraping.

Definition at line 56 of file chainstatemanager_opts.h.


The documentation for this struct was generated from the following file: