mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(consensus): Clear up the naming and intention behind checks (#2415)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -77,7 +77,7 @@ impl<DB: Database> Stage<DB> for TotalDifficultyStage {
|
||||
td += header.difficulty;
|
||||
|
||||
self.consensus
|
||||
.validate_header(&header, td)
|
||||
.validate_header_with_total_difficulty(&header, td)
|
||||
.map_err(|error| StageError::Validation { block: header.number, error })?;
|
||||
cursor_td.append(block_number, td.into())?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user