mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore(sync): add block number to body validation error (#7918)
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -158,10 +158,12 @@ pub enum DownloadError {
|
||||
|
||||
/* ==================== BODIES ERRORS ==================== */
|
||||
/// Block validation failed
|
||||
#[error("failed to validate body for header {hash}: {error}")]
|
||||
#[error("failed to validate body for header {hash}, block number {number}: {error}")]
|
||||
BodyValidation {
|
||||
/// Hash of header failing validation
|
||||
/// Hash of the block failing validation
|
||||
hash: B256,
|
||||
/// Number of the block failing validation
|
||||
number: u64,
|
||||
/// The details of validation failure
|
||||
#[source]
|
||||
error: Box<ConsensusError>,
|
||||
|
||||
Reference in New Issue
Block a user