Skip to content

Commit

Permalink
chore: rename terminal_difficulty to total_difficulty (paradigmxyz#9530)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored Jul 15, 2024
1 parent bc91944 commit 466885a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/storage/provider/src/providers/static_file/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ impl StaticFileProviderRW {
pub fn append_header(
&mut self,
header: Header,
terminal_difficulty: U256,
total_difficulty: U256,
hash: BlockHash,
) -> ProviderResult<BlockNumber> {
let start = Instant::now();
Expand All @@ -479,7 +479,7 @@ impl StaticFileProviderRW {
let block_number = self.increment_block(StaticFileSegment::Headers, header.number)?;

self.append_column(header)?;
self.append_column(CompactU256::from(terminal_difficulty))?;
self.append_column(CompactU256::from(total_difficulty))?;
self.append_column(hash)?;

if let Some(metrics) = &self.metrics {
Expand Down

0 comments on commit 466885a

Please sign in to comment.