parse_extra_field_truncate_on_error

Function parse_extra_field_truncate_on_error 

Source
fn parse_extra_field_truncate_on_error(
    raw_extra_field: &RawExtraField,
) -> ExtraField
Expand description

Parsing an extra field from bytes will always return an extra field with subfields that could be read even if it does not represent the original As per Monero consensus rules, an error here will not represent failure to deserialize a block, so no need to error here.