From 466885a8b2e5d4e83b719f2f29684fc080684ae1 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Mon, 15 Jul 2024 16:16:05 -0400 Subject: [PATCH] chore: rename terminal_difficulty to total_difficulty (#9530) --- crates/storage/provider/src/providers/static_file/writer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/storage/provider/src/providers/static_file/writer.rs b/crates/storage/provider/src/providers/static_file/writer.rs index 304429a015..a84210f4cb 100644 --- a/crates/storage/provider/src/providers/static_file/writer.rs +++ b/crates/storage/provider/src/providers/static_file/writer.rs @@ -468,7 +468,7 @@ impl StaticFileProviderRW { pub fn append_header( &mut self, header: Header, - terminal_difficulty: U256, + total_difficulty: U256, hash: BlockHash, ) -> ProviderResult { let start = Instant::now(); @@ -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 {