mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(tree): first block naming (#3009)
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user