MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsUnspendable

Method IsUnspendable

src/script/script.h:564–567  ·  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

562 * instantly when entering the UTXO set.
563 */
564 bool IsUnspendable() const
565 {
566 return (size() > 0 && *begin() == OP_RETURN) || (size() > MAX_SCRIPT_SIZE);
567 }
568
569 void clear()
570 {

Callers 15

ScriptToAsmStrFunction · 0.80
AddCoinMethod · 0.80
DisconnectBlockMethod · 0.80
GetDustThresholdFunction · 0.80
CachedTxGetAmountsFunction · 0.80
SimulationTestMethod · 0.80
FUZZ_TARGETFunction · 0.80
script.cppFile · 0.80
key.cppFile · 0.80
CustomAppendMethod · 0.80
RevertBlockMethod · 0.80
sendrawtransactionFunction · 0.80

Calls 2

sizeFunction · 0.85
beginFunction · 0.85

Tested by 2

SimulationTestMethod · 0.64
FUZZ_TARGETFunction · 0.64