Function is_unspendable

Source
fn is_unspendable(script: &ScriptBuf) -> bool
Expand description

Checks if a script is unspendable either by its length or if it contains the OP_RETURN opcode. It follows the implementation on Bitcoin Core.