Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
14static const int32_t VERSIONBITS_TOP_BITS = 0x20000000UL;
15
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:25
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85
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.
static const int32_t VERSIONBITS_TOP_BITS
What bits to set in version for versionbits blocks.
Definition versionbits.h:14