Bitcoin Core 30.99.0
P2P Digital Currency
Public Attributes | List of all members
node::KernelState Struct Reference

State tracked by the KernelNotifications interface meant to be used by mining code, index code, RPCs, and other code sitting above the validation layer. More...

#include <kernel_notifications.h>

Public Attributes

bool chainstate_loaded {false}
 
std::optional< uint256tip_block
 

Detailed Description

State tracked by the KernelNotifications interface meant to be used by mining code, index code, RPCs, and other code sitting above the validation layer.

Currently just tracks the chain tip, but could be used to hold other information in the future, like the last flushed block, pruning information, etc.

Definition at line 39 of file kernel_notifications.h.

Member Data Documentation

◆ chainstate_loaded

bool node::KernelState::chainstate_loaded {false}

Definition at line 40 of file kernel_notifications.h.

◆ tip_block

std::optional<uint256> node::KernelState::tip_block

Definition at line 41 of file kernel_notifications.h.


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