fn unpack_block_date(codec: &mut Codec<&[u8]>) -> Result<BlockDate, ReadError>