Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 582 Lines • ▼ Show 20 Lines | for (const CTxIn &txin : tx.vin) { | ||||
} | } | ||||
// Check for non-standard pay-to-script-hash in inputs | // Check for non-standard pay-to-script-hash in inputs | ||||
if (fRequireStandard && !AreInputsStandard(tx, view)) { | if (fRequireStandard && !AreInputsStandard(tx, view)) { | ||||
return state.Invalid(false, REJECT_NONSTANDARD, | return state.Invalid(false, REJECT_NONSTANDARD, | ||||
"bad-txns-nonstandard-inputs"); | "bad-txns-nonstandard-inputs"); | ||||
} | } | ||||
int64_t nSigOpsCount = | int64_t nSigOpsCount = GetTransactionSigOpCount( | ||||
GetTransactionSigOpCount(tx, view, STANDARD_SCRIPT_VERIFY_FLAGS); | tx, view, STANDARD_CHECKDATASIG_VERIFY_FLAGS); | ||||
Amount nValueOut = tx.GetValueOut(); | Amount nValueOut = tx.GetValueOut(); | ||||
Amount nFees = nValueIn - nValueOut; | Amount nFees = nValueIn - nValueOut; | ||||
// nModifiedFees includes any fee deltas from PrioritiseTransaction | // nModifiedFees includes any fee deltas from PrioritiseTransaction | ||||
Amount nModifiedFees = nFees; | Amount nModifiedFees = nFees; | ||||
double nPriorityDummy = 0; | double nPriorityDummy = 0; | ||||
pool.ApplyDeltas(txid, nPriorityDummy, nModifiedFees); | pool.ApplyDeltas(txid, nPriorityDummy, nModifiedFees); | ||||
▲ Show 20 Lines • Show All 5,135 Lines • Show Last 20 Lines |