pub fn count_block(block: &Block) -> u32Expand description
Counts sigop cost visible without a UTXO set.
P2SH redeem-script and witness sigops that require previous outputs cannot be
counted from a bare block alone; callers with a UTXO view should use the
bitcoin::Transaction::total_sigop_cost closure shape directly.