diff --git a/crates/interfaces/src/p2p/headers/downloader.rs b/crates/interfaces/src/p2p/headers/downloader.rs index 07633681d..9eea13aab 100644 --- a/crates/interfaces/src/p2p/headers/downloader.rs +++ b/crates/interfaces/src/p2p/headers/downloader.rs @@ -82,14 +82,14 @@ pub fn validate_header_download( // validate header against parent consensus.validate_header_against_parent(header, parent).map_err(|error| { DownloadError::HeaderValidation { - hash: parent.hash(), + hash: header.hash(), number: header.number, error: Box::new(error), } })?; // validate header standalone consensus.validate_header(header).map_err(|error| DownloadError::HeaderValidation { - hash: parent.hash(), + hash: header.hash(), number: header.number, error: Box::new(error), })?;