PIVX Core  5.6.99
P2P Digital Currency
Functions
SaplingValidation Namespace Reference

Functions

bool CheckTransaction (const CTransaction &tx, CValidationState &state, CAmount &nValueOut)
 Context-independent validity checks. More...
 
bool CheckTransactionWithoutProofVerification (const CTransaction &tx, CValidationState &state, CAmount &nValueOut)
 
bool ContextualCheckTransaction (const CTransaction &tx, CValidationState &state, const CChainParams &chainparams, const int nHeight, const bool isMined, bool isInitBlockDownload)
 Check a transaction contextually against a set of consensus rules valid at a given block height. More...
 

Function Documentation

◆ CheckTransaction()

bool SaplingValidation::CheckTransaction ( const CTransaction tx,
CValidationState state,
CAmount nValueOut 
)

Context-independent validity checks.

Definition at line 19 of file sapling_validation.cpp.

Here is the call graph for this function:

◆ CheckTransactionWithoutProofVerification()

bool SaplingValidation::CheckTransactionWithoutProofVerification ( const CTransaction tx,
CValidationState state,
CAmount nValueOut 
)

Definition at line 45 of file sapling_validation.cpp.

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

◆ ContextualCheckTransaction()

bool SaplingValidation::ContextualCheckTransaction ( const CTransaction tx,
CValidationState state,
const CChainParams chainparams,
const int  nHeight,
const bool  isMined,
bool  isInitBlockDownload 
)

Check a transaction contextually against a set of consensus rules valid at a given block height.

Check a transaction contextually against a set of consensus rules.

Notes:

  1. AcceptToMemoryPool calls CheckTransaction and this function.
  2. ProcessNewBlock calls AcceptBlock, which calls CheckBlock (which calls CheckTransaction) and ContextualCheckBlock (which calls this function).
  3. For consensus rules that relax restrictions (where a transaction that is invalid at nHeight can become valid at a later height), we make the bans conditional on not being in Initial Block Download mode.
  4. The isInitBlockDownload argument is a function parameter to assist with testing.

Definition at line 113 of file sapling_validation.cpp.

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