Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10615385
blockvalidity.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
blockvalidity.h
View Options
// Copyright (c) 2018 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_BLOCKVALIDITY_H
#define BITCOIN_BLOCKVALIDITY_H
#include
<cstdint>
enum
class
BlockValidity
:
uint32_t
{
/**
* Unused.
*/
UNKNOWN
=
0
,
/**
* Reserved (was HEADER).
*/
RESERVED
=
1
,
/**
* All parent headers found, difficulty matches, timestamp >= median
* previous, checkpoint. Implies all parents are also at least TREE.
*/
TREE
=
2
,
/**
* Only first tx is coinbase, 2 <= coinbase input script length <= 100,
* transactions valid, no duplicate txids, 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.
*/
TRANSACTIONS
=
3
,
/**
* Outputs do not overspend inputs, no double spends, coinbase output ok, no
* immature coinbase spends, BIP30.
* Implies all parents are also at least CHAIN.
*/
CHAIN
=
4
,
/**
* Scripts & signatures ok. Implies all parents are also at least SCRIPTS.
*/
SCRIPTS
=
5
,
};
#endif
// BITCOIN_BLOCKVALIDITY_H
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 23, 10:06 (22 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4508057
Default Alt Text
blockvalidity.h (1 KB)
Attached To
rSTAGING Bitcoin ABC staging
Event Timeline
Log In to Comment