Changeset View
Changeset View
Standalone View
Standalone View
src/blockvalidity.h
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_BLOCKVALIDITY_H | #ifndef BITCOIN_BLOCKVALIDITY_H | ||||
#define BITCOIN_BLOCKVALIDITY_H | #define BITCOIN_BLOCKVALIDITY_H | ||||
#include <cstdint> | #include <cstdint> | ||||
enum class BlockValidity : uint32_t { | enum class BlockValidity : uint32_t { | ||||
/** | /** | ||||
* Unused. | * Unused. | ||||
*/ | */ | ||||
UNKNOWN = 0, | UNKNOWN = 0, | ||||
/** | /** | ||||
* Parsed, version ok, hash satisfies claimed PoW, 1 <= vtx count <= max, | * Reserved (was HEADER). | ||||
* timestamp not in future. | |||||
*/ | */ | ||||
HEADER = 1, | RESERVED = 1, | ||||
/** | /** | ||||
* All parent headers found, difficulty matches, timestamp >= median | * All parent headers found, difficulty matches, timestamp >= median | ||||
* previous, checkpoint. Implies all parents are also at least TREE. | * previous, checkpoint. Implies all parents are also at least TREE. | ||||
*/ | */ | ||||
TREE = 2, | TREE = 2, | ||||
/** | /** | ||||
Show All 22 Lines |