Bitcoin ABC  0.29.1
P2P Digital Currency
daa.h
Go to the documentation of this file.
1 // Copyright (c) 2017-2020 The Bitcoin 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_POW_DAA_H
6 #define BITCOIN_POW_DAA_H
7 
8 #include <cstdint>
9 
10 class CBlockHeader;
11 class CBlockIndex;
12 
13 namespace Consensus {
14 struct Params;
15 }
16 
17 uint32_t GetNextDAAWorkRequired(const CBlockIndex *pindexPrev,
18  const CBlockHeader *pblock,
19  const Consensus::Params &params);
20 
21 #endif // BITCOIN_POW_DAA_H
const CChainParams & Params()
Return the currently selected parameters.
Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce value...
Definition: block.h:23
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:26
uint32_t GetNextDAAWorkRequired(const CBlockIndex *pindexPrev, const CBlockHeader *pblock, const Consensus::Params &params)
Compute the next required proof of work using a weighted average of the estimated hashrate per block.
Definition: daa.cpp:91
Parameters that influence chain consensus.
Definition: params.h:34