PIVX Core  5.6.99
P2P Digital Currency
Functions | Variables
blockassembler.cpp File Reference
#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>
Include dependency graph for blockassembler.cpp:

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
 

Function Documentation

◆ CalculateSaplingTreeRoot()

uint256 CalculateSaplingTreeRoot ( CBlock pblock,
int  nHeight,
const CChainParams chainparams 
)

Definition at line 505 of file blockassembler.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ComputeBlockVersion()

int32_t ComputeBlockVersion ( const Consensus::Params consensus,
int  nHeight 
)

Definition at line 552 of file blockassembler.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateCoinbaseTx() [1/2]

bool CreateCoinbaseTx ( CBlock pblock,
const CScript scriptPubKeyIn,
CBlockIndex pindexPrev 
)

Definition at line 130 of file blockassembler.cpp.

◆ CreateCoinbaseTx() [2/2]

CMutableTransaction CreateCoinbaseTx ( const CScript scriptPubKeyIn,
CBlockIndex pindexPrev 
)

Definition at line 110 of file blockassembler.cpp.

Here is the caller graph for this function:

◆ IncrementExtraNonce()

void IncrementExtraNonce ( std::shared_ptr< CBlock > &  pblock,
int  nHeight,
unsigned int &  nExtraNonce 
)

Definition at line 535 of file blockassembler.cpp.

Here is the caller graph for this function:

◆ SolveBlock()

bool SolveBlock ( std::shared_ptr< CBlock > &  pblock,
int  nHeight 
)

Modify the nonce/extranonce in a block.

Definition at line 524 of file blockassembler.cpp.

Here is the call graph for this function:

◆ SolveProofOfStake()

bool SolveProofOfStake ( CBlock pblock,
CBlockIndex pindexPrev,
CWallet pwallet,
std::vector< CStakeableOutput > *  availableCoins,
bool  stopPoSOnNewBlock 
)

Definition at line 69 of file blockassembler.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateTime()

int64_t UpdateTime ( CBlockHeader pblock,
const Consensus::Params consensusParams,
const CBlockIndex pindexPrev 
)

Definition at line 43 of file blockassembler.cpp.

Here is the call graph for this function:

Variable Documentation

◆ nLastBlockSize

uint64_t nLastBlockSize = 0

Definition at line 41 of file blockassembler.cpp.

◆ nLastBlockTx

uint64_t nLastBlockTx = 0

Definition at line 40 of file blockassembler.cpp.