![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
#include "blockassembler.h"#include "amount.h"#include "blocksignature.h"#include "chain.h"#include "chainparams.h"#include "consensus/consensus.h"#include "consensus/merkle.h"#include "consensus/upgrades.h"#include "consensus/validation.h"#include "llmq/quorums_blockprocessor.h"#include "masternode-payments.h"#include "policy/policy.h"#include "pow.h"#include "primitives/transaction.h"#include "spork.h"#include "timedata.h"#include "util/system.h"#include "util/validation.h"#include "validationinterface.h"#include <algorithm>#include <boost/thread.hpp>Go to the source code of this file.
Functions | |
| int64_t | UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev) |
| bool | SolveProofOfStake (CBlock *pblock, CBlockIndex *pindexPrev, CWallet *pwallet, std::vector< CStakeableOutput > *availableCoins, bool stopPoSOnNewBlock) |
| CMutableTransaction | CreateCoinbaseTx (const CScript &scriptPubKeyIn, CBlockIndex *pindexPrev) |
| bool | CreateCoinbaseTx (CBlock *pblock, const CScript &scriptPubKeyIn, CBlockIndex *pindexPrev) |
| uint256 | CalculateSaplingTreeRoot (CBlock *pblock, int nHeight, const CChainParams &chainparams) |
| bool | SolveBlock (std::shared_ptr< CBlock > &pblock, int nHeight) |
| Modify the nonce/extranonce in a block. More... | |
| void | IncrementExtraNonce (std::shared_ptr< CBlock > &pblock, int nHeight, unsigned int &nExtraNonce) |
| int32_t | ComputeBlockVersion (const Consensus::Params &consensus, int nHeight) |
Variables | |
| uint64_t | nLastBlockTx = 0 |
| uint64_t | nLastBlockSize = 0 |
| uint256 CalculateSaplingTreeRoot | ( | CBlock * | pblock, |
| int | nHeight, | ||
| const CChainParams & | chainparams | ||
| ) |
Definition at line 505 of file blockassembler.cpp.
| int32_t ComputeBlockVersion | ( | const Consensus::Params & | consensus, |
| int | nHeight | ||
| ) |
Definition at line 552 of file blockassembler.cpp.
| bool CreateCoinbaseTx | ( | CBlock * | pblock, |
| const CScript & | scriptPubKeyIn, | ||
| CBlockIndex * | pindexPrev | ||
| ) |
Definition at line 130 of file blockassembler.cpp.
| CMutableTransaction CreateCoinbaseTx | ( | const CScript & | scriptPubKeyIn, |
| CBlockIndex * | pindexPrev | ||
| ) |
| void IncrementExtraNonce | ( | std::shared_ptr< CBlock > & | pblock, |
| int | nHeight, | ||
| unsigned int & | nExtraNonce | ||
| ) |
| bool SolveBlock | ( | std::shared_ptr< CBlock > & | pblock, |
| int | nHeight | ||
| ) |
Modify the nonce/extranonce in a block.
Definition at line 524 of file blockassembler.cpp.
| bool SolveProofOfStake | ( | CBlock * | pblock, |
| CBlockIndex * | pindexPrev, | ||
| CWallet * | pwallet, | ||
| std::vector< CStakeableOutput > * | availableCoins, | ||
| bool | stopPoSOnNewBlock | ||
| ) |
Definition at line 69 of file blockassembler.cpp.
| int64_t UpdateTime | ( | CBlockHeader * | pblock, |
| const Consensus::Params & | consensusParams, | ||
| const CBlockIndex * | pindexPrev | ||
| ) |
| uint64_t nLastBlockSize = 0 |
Definition at line 41 of file blockassembler.cpp.
| uint64_t nLastBlockTx = 0 |
Definition at line 40 of file blockassembler.cpp.