Raven Core  3.0.0
P2P Digital Currency
pow.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Copyright (c) 2017-2019 The Raven Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef RAVEN_POW_H
8 #define RAVEN_POW_H
9 
10 #include "consensus/params.h"
11 
12 #include <stdint.h>
13 
14 class CBlockHeader;
15 class CBlockIndex;
16 class uint256;
17 
18 unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params&);
19 unsigned int CalculateNextWorkRequired(const CBlockIndex* pindexLast, int64_t nFirstBlockTime, const Consensus::Params&);
20 
22 bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&);
23 
24 #endif // RAVEN_POW_H
unsigned int GetNextWorkRequired(const CBlockIndex *pindexLast, const CBlockHeader *pblock, const Consensus::Params &)
Definition: pow.cpp:123
unsigned int CalculateNextWorkRequired(const CBlockIndex *pindexLast, int64_t nFirstBlockTime, const Consensus::Params &)
Definition: pow.cpp:142
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:167
Parameters that influence chain consensus.
Definition: params.h:47
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:172
Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce value...
Definition: block.h:21