Bitcoin ABC 0.31.1
P2P Digital Currency
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
7std::ostream &operator<<(std::ostream &os, const ChainstateRole &role) {
8 switch (role) {
10 os << "normal";
11 break;
13 os << "assumedvalid";
14 break;
16 os << "background";
17 break;
18 default:
19 os.setstate(std::ios_base::failbit);
20 }
21 return os;
22}
std::ostream & operator<<(std::ostream &os, const ChainstateRole &role)
Definition: chain.cpp:7
ChainstateRole
This enum describes the various roles a specific Chainstate instance can take.
Definition: chain.h:14