Changeset View
Changeset View
Standalone View
Standalone View
src/blockvalidity.h
Show All 20 Lines | enum class BlockValidity : uint32_t { | ||||
/** | /** | ||||
* 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, | ||||
/** | /** | ||||
* Only first tx is coinbase, 2 <= coinbase input script length <= 100, | * Only first tx is coinbase, 2 <= coinbase input script length <= 100, | ||||
* transactions valid, no duplicate txids, sigops, size, merkle root. | * transactions valid, no duplicate txids, size, merkle root. | ||||
* Implies all parents are at least TREE but not necessarily TRANSACTIONS. | * Implies all parents are at least TREE but not necessarily TRANSACTIONS. | ||||
* When all parent blocks also have TRANSACTIONS, CBlockIndex::nChainTx and | * When all parent blocks also have TRANSACTIONS, CBlockIndex::nChainTx and | ||||
* CBlockIndex::nChainSize will be set. | * CBlockIndex::nChainSize will be set. | ||||
*/ | */ | ||||
TRANSACTIONS = 3, | TRANSACTIONS = 3, | ||||
/** | /** | ||||
* Outputs do not overspend inputs, no double spends, coinbase output ok, no | * Outputs do not overspend inputs, no double spends, coinbase output ok, no | ||||
Show All 12 Lines |