Skip to main content

count_script_push_ops

Function count_script_push_ops 

Source
pub(super) fn count_script_push_ops(script_bytes: &[u8]) -> usize
Expand description

Count the number of push operations in a script.

For a push-only script (already enforced for mempool scriptSigs), this equals the stack depth after evaluation.