Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5//! @file kernel/types.h is a home for simple enum and struct type definitions6//! that can be used internally by functions in the libbitcoin_kernel library,7//! but also used externally by node, wallet, and GUI code.8//!9//! This file is intended to define only simple types that do not have external10//! dependencies. More complicated types should be defined in dedicated header11//! files.13#ifndef BITCOIN_KERNEL_TYPES_H14#define BITCOIN_KERNEL_TYPES_H16namespace kernel {17//! Information about chainstate that notifications are sent from.18struct ChainstateRole {19//! Whether this is a notification from a chainstate that's been fully20//! validated starting from the genesis block. False if it is from an21//! assumeutxo snapshot chainstate that has not been validated yet.22bool validated{true};24//! Whether this is a historical chainstate downloading old blocks to25//! validate an assumeutxo snapshot, not syncing to the network tip.26bool historical{false};27};28} // namespace kernel30#endif // BITCOIN_KERNEL_TYPES_H