Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 507 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
bool CheckInputs(const CTransaction &tx, CValidationState &state, | bool CheckInputs(const CTransaction &tx, CValidationState &state, | ||||
const CCoinsViewCache &view, bool fScriptChecks, | const CCoinsViewCache &view, bool fScriptChecks, | ||||
const uint32_t flags, bool sigCacheStore, | const uint32_t flags, bool sigCacheStore, | ||||
bool scriptCacheStore, | bool scriptCacheStore, | ||||
const PrecomputedTransactionData &txdata, | const PrecomputedTransactionData &txdata, | ||||
std::vector<CScriptCheck> *pvChecks = nullptr); | std::vector<CScriptCheck> *pvChecks = nullptr); | ||||
/** Apply the effects of this transaction on the UTXO set represented by view */ | /** | ||||
* Mark all the coins corresponding to a given transaction inputs as spent. | |||||
*/ | |||||
void SpendCoins(CCoinsViewCache &view, const CTransaction &tx, CTxUndo &txundo, | |||||
int nHeight); | |||||
/** | |||||
* Apply the effects of this transaction on the UTXO set represented by view. | |||||
*/ | |||||
void UpdateCoins(CCoinsViewCache &view, const CTransaction &tx, int nHeight); | void UpdateCoins(CCoinsViewCache &view, const CTransaction &tx, int nHeight); | ||||
void UpdateCoins(CCoinsViewCache &view, const CTransaction &tx, CTxUndo &txundo, | void UpdateCoins(CCoinsViewCache &view, const CTransaction &tx, CTxUndo &txundo, | ||||
int nHeight); | int nHeight); | ||||
/** Transaction validation functions */ | /** Transaction validation functions */ | ||||
/** Context-independent validity checks for coinbase and non-coinbase | /** Context-independent validity checks for coinbase and non-coinbase | ||||
* transactions */ | * transactions */ | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |