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:
rakita
2023-04-26 18:04:36 +02:00
committed by GitHub
parent 57a19f91f0
commit 837555e296
10 changed files with 59 additions and 28 deletions

View File

@ -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())?;
}