MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsUnspendable

Method IsUnspendable

src/script/script.h:617–621  ·  view source on GitHub ↗

* Returns whether the script is guaranteed to fail at execution, * regardless of the initial stack. This allows outputs to be pruned * instantly when entering the UTXO set. */

Source from the content-addressed store, hash-verified

615 * instantly when entering the UTXO set.
616 */
617 bool IsUnspendable() const
618 {
619 return (size() > 0 && *begin() == OP_RETURN) || (size() > MAX_SCRIPT_SIZE) ||
620 (g_con_elementsmode && size() == 0 /* Elements rule for fee outputs */);
621 }
622
623 void clear()
624 {

Callers 15

ScriptToAsmStrFunction · 0.80
VerifyAmountsFunction · 0.80
VerifyCoinbaseAmountFunction · 0.80
UpgradeMethod · 0.80
CreateValueRangeProofFunction · 0.80
AddCoinMethod · 0.80
DisconnectBlockMethod · 0.80
UnblindConfidentialPairFunction · 0.80
GenerateRangeproofFunction · 0.80
GetDustThresholdFunction · 0.80
CachedTxGetAmountsFunction · 0.80
VerifyRangeProofMethod · 0.80

Calls 2

beginFunction · 0.85
sizeFunction · 0.50

Tested by 4

SimulationTestFunction · 0.64
FUZZ_TARGETFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64