Skip to main content

p2sh_sigop_count

Function p2sh_sigop_count 

Source
pub(super) fn p2sh_sigop_count(
    tx: &Transaction,
    spent_outputs: &[Output],
) -> u32
Expand description

Returns the total number of P2SH sigops across all inputs of the transaction.

Mirrors zcashd’s GetP2SHSigOpCount(): https://github.com/zcash/zcash/blob/v6.11.0/src/main.cpp#L1191

§Panics

Callers must ensure spent_outputs.len() matches the number of transparent inputs.