Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

pow.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2015 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_POW_H
7 #define BITCOIN_POW_H
8 
9 #include <consensus/params.h>
10 
11 #include <stdint.h>
12 
13 class CBlockHeader;
14 class CBlockIndex;
15 class uint256;
16 
17 unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
18 unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&);
19 
20 
22 bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&);
23 
24 #endif // BITCOIN_POW_H
unsigned int GetNextWorkRequired(const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &)
Definition: pow.cpp:168
unsigned int CalculateNextWorkRequired(const CBlockIndex *pindexLast, int64_t nFirstBlockTime, const Consensus::Params &)
Definition: pow.cpp:208
bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params &)
Check whether a block hash satisfies the proof-of-work requirement specified by nBits.
Definition: pow.cpp:233
Parameters that influence chain consensus.
Definition: params.h:130
256-bit opaque blob.
Definition: uint256.h:123
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce value...
Definition: block.h:20
Released under the MIT license