Changeset View
Changeset View
Standalone View
Standalone View
src/chain.h
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | enum BlockStatus : uint32_t { | ||||
BLOCK_VALID_HEADER = 1, | BLOCK_VALID_HEADER = 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. | ||||
BLOCK_VALID_TREE = 2, | BLOCK_VALID_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 txhashes, sigops, 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 will | * When all parent blocks also have TRANSACTIONS, CBlockIndex::nChainTx will | ||||
* be set. | * be set. | ||||
*/ | */ | ||||
BLOCK_VALID_TRANSACTIONS = 3, | BLOCK_VALID_TRANSACTIONS = 3, | ||||
//! Outputs do not overspend inputs, no double spends, coinbase output ok, | //! Outputs do not overspend inputs, no double spends, coinbase output ok, | ||||
//! no immature coinbase spends, BIP30. | //! no immature coinbase spends, BIP30. | ||||
▲ Show 20 Lines • Show All 368 Lines • Show Last 20 Lines |