Bitcoin
|
Classes | |
struct | BIP9Deployment |
struct | Params |
Enumerations | |
enum | DeploymentPos { DEPLOYMENT_TESTDUMMY, DEPLOYMENT_CSV, DEPLOYMENT_SEGWIT, MAX_VERSION_BITS_DEPLOYMENTS } |
Functions | |
bool | CheckTxInputs (const CTransaction &tx, CValidationState &state, const CCoinsViewCache &inputs, int nSpendHeight, CAmount &txfee) |
Transaction validation functions
bool Consensus::CheckTxInputs | ( | const CTransaction & | tx, |
CValidationState & | state, | ||
const CCoinsViewCache & | inputs, | ||
int | nSpendHeight, | ||
CAmount & | txfee | ||
) |
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 sigs.
[out] | txfee | Set to the transaction fee if successful. Preconditions: tx.IsCoinBase() is false. |