forked from Bitcoin-ABC/bitcoin-abc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblockvalidity.h
49 lines (40 loc) · 1.31 KB
/
blockvalidity.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// 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, 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.
*/
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