pub(crate) fn sanity_check_block_by_hash( hash: &[u8; 32], block: &Block, ) -> Result<(), InterfaceError>