Skip to main content

count_block

Function count_block 

Source
pub fn count_block(block: &Block) -> u32
Expand 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.