Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/tx_verify.h
Show All 12 Lines | |||||
class Config; | class Config; | ||||
class CTransaction; | class CTransaction; | ||||
class CValidationState; | class CValidationState; | ||||
/** | /** | ||||
* Context-independent validity checks for coinbase and non-coinbase | * Context-independent validity checks for coinbase and non-coinbase | ||||
* transactions. | * transactions. | ||||
*/ | */ | ||||
bool CheckRegularTransaction(const CTransaction &tx, CValidationState &state, | bool CheckRegularTransaction(const CTransaction &tx, CValidationState &state); | ||||
bool fCheckDuplicateInputs = true); | bool CheckCoinbase(const CTransaction &tx, CValidationState &state); | ||||
bool CheckCoinbase(const CTransaction &tx, CValidationState &state, | |||||
bool fCheckDuplicateInputs = true); | |||||
namespace Consensus { | namespace Consensus { | ||||
/** | /** | ||||
* Check whether all inputs of this transaction are valid (no double spends and | * Check whether all inputs of this transaction are valid (no double spends and | ||||
* amounts). This does not modify the UTXO set. This does not check scripts and | * amounts). This does not modify the UTXO set. This does not check scripts and | ||||
* sigs. Preconditions: tx.IsCoinBase() is false. | * sigs. Preconditions: tx.IsCoinBase() is false. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |