From 9df9c03a882e08343a1b6e3f2a4fa70d314381a6 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Sat, 20 Apr 2024 02:31:14 +0200 Subject: [PATCH] fix(tracing): wrong header in error (#7767) --- crates/interfaces/src/p2p/headers/downloader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), })?;