Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Public Member Functions | Private Attributes | List of all members
CScriptCheck Class Reference

Check if transaction will be BIP 68 final in the next block to be created. More...

#include <validation.h>

Collaboration diagram for CScriptCheck:
[legend]

Public Member Functions

 CScriptCheck ()
 
 CScriptCheck (const CTxOut &outIn, const CTransaction &txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData *txdataIn)
 
bool operator() ()
 
void swap (CScriptCheck &check)
 
ScriptError GetScriptError () const
 

Private Attributes

CTxOut m_tx_out
 
const CTransactionptxTo
 
unsigned int nIn
 
unsigned int nFlags
 
bool cacheStore
 
ScriptError error
 
PrecomputedTransactionDatatxdata
 

Detailed Description

Check if transaction will be BIP 68 final in the next block to be created.

Simulates calling SequenceLocks() with data from the tip of the current active chain. Optionally stores in LockPoints the resulting height and time calculated and the hash of the block needed for calculation or skips the calculation and uses the LockPoints passed in for evaluation. The LockPoints should not be considered valid if CheckSequenceLocks returns false.

See consensus/consensus.h for flag definitions. Closure representing one script verification Note that this stores references to the spending transaction

Definition at line 252 of file validation.h.

Constructor & Destructor Documentation

CScriptCheck::CScriptCheck ( )
inline

Definition at line 264 of file validation.h.

CScriptCheck::CScriptCheck ( const CTxOut outIn,
const CTransaction txToIn,
unsigned int  nInIn,
unsigned int  nFlagsIn,
bool  cacheIn,
PrecomputedTransactionData txdataIn 
)
inline

Definition at line 265 of file validation.h.

Member Function Documentation

ScriptError CScriptCheck::GetScriptError ( ) const
inline

Definition at line 280 of file validation.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CScriptCheck::operator() ( )

Definition at line 1464 of file validation.cpp.

Here is the call graph for this function:

void CScriptCheck::swap ( CScriptCheck check)
inline

Definition at line 270 of file validation.h.

Here is the caller graph for this function:

Member Data Documentation

bool CScriptCheck::cacheStore
private

Definition at line 259 of file validation.h.

ScriptError CScriptCheck::error
private

Definition at line 260 of file validation.h.

CTxOut CScriptCheck::m_tx_out
private

Definition at line 255 of file validation.h.

unsigned int CScriptCheck::nFlags
private

Definition at line 258 of file validation.h.

unsigned int CScriptCheck::nIn
private

Definition at line 257 of file validation.h.

const CTransaction* CScriptCheck::ptxTo
private

Definition at line 256 of file validation.h.

PrecomputedTransactionData* CScriptCheck::txdata
private

Definition at line 261 of file validation.h.


The documentation for this class was generated from the following files: