mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(tracing): wrong header in error (#7767)
This commit is contained in:
@ -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),
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user