![]() |
Bitcoin ABC
0.22.13
P2P Digital Currency
|
#include <cstdint>
Go to the source code of this file.
Enumerations | |
enum | BlockValidity : uint32_t { BlockValidity::UNKNOWN = 0, BlockValidity::RESERVED = 1, BlockValidity::TREE = 2, BlockValidity::TRANSACTIONS = 3, BlockValidity::CHAIN = 4, BlockValidity::SCRIPTS = 5 } |
|
strong |
Enumerator | |
---|---|
UNKNOWN | Unused. |
RESERVED | Reserved (was HEADER). |
TREE | All parent headers found, difficulty matches, timestamp >= median previous, checkpoint. Implies all parents are also at least TREE. |
TRANSACTIONS | Only first tx is coinbase, 2 <= coinbase input script length <= 100, transactions valid, no duplicate txids, sigops, size, merkle root. Implies all parents are at least TREE but not necessarily TRANSACTIONS. When all parent blocks also have TRANSACTIONS, CBlockIndex::nChainTx and CBlockIndex::nChainSize will be set. |
CHAIN | Outputs do not overspend inputs, no double spends, coinbase output ok, no immature coinbase spends, BIP30. Implies all parents are also at least CHAIN. |
SCRIPTS | Scripts & signatures ok. Implies all parents are also at least SCRIPTS. |
Definition at line 10 of file blockvalidity.h.