PIVX Core  5.6.99
P2P Digital Currency
Functions
tx_verify.cpp File Reference
#include "tx_verify.h"
#include "consensus/consensus.h"
#include "consensus/zerocoin_verify.h"
#include "sapling/sapling_validation.h"
#include "../validation.h"
Include dependency graph for tx_verify.cpp:

Go to the source code of this file.

Functions

bool IsFinalTx (const CTransactionRef &tx, int nBlockHeight, int64_t nBlockTime)
 Check if transaction is final and can be included in a block with the specified height and time. More...
 
unsigned int GetLegacySigOpCount (const CTransaction &tx)
 Count ECDSA signature operations the old-fashioned (pre-0.6) way. More...
 
unsigned int GetP2SHSigOpCount (const CTransaction &tx, const CCoinsViewCache &inputs)
 Count ECDSA signature operations in pay-to-script-hash inputs. More...
 
bool CheckTransaction (const CTransaction &tx, CValidationState &state, bool fColdStakingActive)
 Transaction validation functions. More...
 
bool ContextualCheckTransaction (const CTransactionRef &tx, CValidationState &state, const CChainParams &chainparams, int nHeight, bool isMined, bool fIBD)
 Context-dependent validity checks. More...
 

Function Documentation

◆ CheckTransaction()

bool CheckTransaction ( const CTransaction tx,
CValidationState state,
bool  fColdStakingActive 
)

Transaction validation functions.

Context-independent validity checks

Definition at line 54 of file tx_verify.cpp.

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

◆ ContextualCheckTransaction()

bool ContextualCheckTransaction ( const CTransactionRef tx,
CValidationState state,
const CChainParams chainparams,
int  nHeight,
bool  isMined,
bool  fIBD 
)

Context-dependent validity checks.

Definition at line 134 of file tx_verify.cpp.

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

◆ GetLegacySigOpCount()

unsigned int GetLegacySigOpCount ( const CTransaction tx)

Count ECDSA signature operations the old-fashioned (pre-0.6) way.

Returns
number of sigops this transaction's outputs will produce when spent
See also
CTransaction::FetchInputs

Definition at line 27 of file tx_verify.cpp.

Here is the call graph for this function:

◆ GetP2SHSigOpCount()

unsigned int GetP2SHSigOpCount ( const CTransaction tx,
const CCoinsViewCache mapInputs 
)

Count ECDSA signature operations in pay-to-script-hash inputs.

Parameters
[in]mapInputsMap of previous transactions that have outputs we're spending
Returns
maximum number of sigops required to validate this transaction's inputs
See also
CTransaction::FetchInputs

Definition at line 39 of file tx_verify.cpp.

Here is the call graph for this function:

◆ IsFinalTx()

bool IsFinalTx ( const CTransactionRef tx,
int  nBlockHeight,
int64_t  nBlockTime = 0 
)

Check if transaction is final and can be included in a block with the specified height and time.

Consensus critical.

Definition at line 12 of file tx_verify.cpp.

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