CheckTransaction

Performs context-independent validity checks on a transaction.

Synopsis

Declared in <consensus/tx_check.h>

bool
CheckTransaction(
    CTransaction const& tx,
    TxValidationState& state);

Return Value

true if the transaction passes the context-independent checks.

Parameters

NameDescription
txThe transaction to check.
stateReceives the validation result and rejection reason on failure.