mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
22 lines
527 B
C++
22 lines
527 B
C++
// Copyright (c) 2023 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_UTIL_CHAINTYPE_H
|
|
#define BITCOIN_UTIL_CHAINTYPE_H
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
enum class ChainType {
|
|
MAIN,
|
|
SIGNET,
|
|
REGTEST,
|
|
TESTNET4,
|
|
};
|
|
|
|
std::string ChainTypeToString(ChainType chain);
|
|
|
|
std::optional<ChainType> ChainTypeFromString(std::string_view chain);
|
|
|
|
#endif // BITCOIN_UTIL_CHAINTYPE_H
|