pub(super) fn smaller_announcement(
compact: CompactBlock,
block: &Block,
) -> Option<CompactBlock>Expand description
Returns compact if its encoding is smaller than block’s encoding.
An announcement that wouldn’t save bytes, or whose encoding fails, isn’t sent, so the block is relayed with an ordinary block inventory instead.