From b3bd98c37076750c1766be33deb054f46768191b Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Tue, 6 Jun 2023 12:32:06 +0300 Subject: [PATCH] chore(tree): first block naming (#3009) --- crates/storage/provider/src/chain.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/storage/provider/src/chain.rs b/crates/storage/provider/src/chain.rs index 6c2bb0123..90928f13e 100644 --- a/crates/storage/provider/src/chain.rs +++ b/crates/storage/provider/src/chain.rs @@ -82,8 +82,8 @@ impl Chain { /// Get the block at which this chain forked. #[track_caller] pub fn fork_block(&self) -> ForkBlock { - let tip = self.first(); - ForkBlock { number: tip.number.saturating_sub(1), hash: tip.parent_hash } + let first = self.first(); + ForkBlock { number: first.number.saturating_sub(1), hash: first.parent_hash } } /// Get the block number at which this chain forked.