diff --git a/base_layer/core/src/proof_of_work/monero_rx/helpers.rs b/base_layer/core/src/proof_of_work/monero_rx/helpers.rs index cee12084c0..0d84745a1f 100644 --- a/base_layer/core/src/proof_of_work/monero_rx/helpers.rs +++ b/base_layer/core/src/proof_of_work/monero_rx/helpers.rs @@ -94,8 +94,8 @@ pub fn verify_header(header: &BlockHeader) -> Result>( ))); } // When we insert the merge mining tag, we need to make sure that the extra field is valid. - let mut extra_field = parse_extra_field_truncate_on_error(&block.miner_tx.prefix.extra); + let mut extra_field = ExtraField::try_parse(&block.miner_tx.prefix.extra) + .map_err(|_| MergeMineError::DeserializeError("Invalid extra field".to_string()))?; // Adding more than one merge mining tag is not allowed for item in &extra_field.0 {