Bitcoin ABC
0.30.7
P2P Digital Currency
src
pow
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
¶ms);
20
21
#endif
// BITCOIN_POW_DAA_H
Params
const CChainParams & Params()
Return the currently selected parameters.
Definition:
chainparams.cpp:19
CBlockHeader
Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce value...
Definition:
block.h:23
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition:
blockindex.h:25
GetNextDAAWorkRequired
uint32_t GetNextDAAWorkRequired(const CBlockIndex *pindexPrev, const CBlockHeader *pblock, const Consensus::Params ¶ms)
Compute the next required proof of work using a weighted average of the estimated hashrate per block.
Definition:
daa.cpp:91
Consensus
Definition:
activation.h:12
Consensus::Params
Parameters that influence chain consensus.
Definition:
params.h:34
Generated on Sat Dec 21 2024 14:46:05 for Bitcoin ABC by
1.9.4