CScriptCheck::CScriptCheck

Construct a script check for a single input of a spending transaction.

Synopsis

Declared in <validation.h>

CScriptCheck(
    CTxOut const& outIn,
    CTransaction const& txToIn,
    SignatureCache& signature_cache,
    unsigned int nInIn,
    script_verify_flags flags,
    bool cacheIn,
    PrecomputedTransactionData* txdataIn);

Parameters

NameDescription
outInThe output being spent by the input.
txToInThe transaction that spends the output.
signature_cacheCache used to avoid repeating signature verifications.
nInInIndex of the input within the spending transaction.
flagsScript verification flags to apply.
cacheInWhether successful signature checks may be cached.
txdataInPrecomputed transaction data reused across inputs.