Bitcoin ABC
0.32.4
P2P Digital Currency
src
kernel
chain.cpp
Go to the documentation of this file.
1
// Copyright (c) 2022 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include <
kernel/chain.h
>
6
7
std::ostream &
operator<<
(std::ostream &os,
const
ChainstateRole
&role) {
8
switch
(role) {
9
case
ChainstateRole::NORMAL
:
10
os <<
"normal"
;
11
break
;
12
case
ChainstateRole::ASSUMEDVALID
:
13
os <<
"assumedvalid"
;
14
break
;
15
case
ChainstateRole::BACKGROUND
:
16
os <<
"background"
;
17
break
;
18
default
:
19
os.setstate(std::ios_base::failbit);
20
}
21
return
os;
22
}
operator<<
std::ostream & operator<<(std::ostream &os, const ChainstateRole &role)
Definition:
chain.cpp:7
chain.h
ChainstateRole
ChainstateRole
This enum describes the various roles a specific Chainstate instance can take.
Definition:
chain.h:14
ChainstateRole::NORMAL
@ NORMAL
ChainstateRole::ASSUMEDVALID
@ ASSUMEDVALID
ChainstateRole::BACKGROUND
@ BACKGROUND
Generated on Thu Dec 4 2025 17:00:31 for Bitcoin ABC by
1.9.4