* 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. */
| 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 | { |