Bitcoin ABC  0.28.12
P2P Digital Currency
versionbits.h
Go to the documentation of this file.
1 // Copyright (c) 2016-2018 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_VERSIONBITS_H
6 #define BITCOIN_VERSIONBITS_H
7 
8 #include <chain.h>
9 #include <sync.h>
10 
11 #include <map>
12 
14 static const int32_t VERSIONBITS_TOP_BITS = 0x20000000UL;
15 
19 int32_t ComputeBlockVersion(const CBlockIndex *pindexPrev,
20  const Consensus::Params &params);
21 
22 #endif // BITCOIN_VERSIONBITS_H
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:26
Parameters that influence chain consensus.
Definition: params.h:34
int32_t ComputeBlockVersion(const CBlockIndex *pindexPrev, const Consensus::Params &params)
Determine what nVersion a new block should use.
Definition: versionbits.cpp:8
static const int32_t VERSIONBITS_TOP_BITS
What bits to set in version for versionbits blocks.
Definition: versionbits.h:14