mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Add terminal_block_hash to ChainSpec
This commit is contained in:
@@ -131,6 +131,7 @@ pub struct ChainSpec {
|
|||||||
/// The Merge fork epoch is optional, with `None` representing "Merge never happens".
|
/// The Merge fork epoch is optional, with `None` representing "Merge never happens".
|
||||||
pub merge_fork_epoch: Option<Epoch>,
|
pub merge_fork_epoch: Option<Epoch>,
|
||||||
pub terminal_total_difficulty: Uint256,
|
pub terminal_total_difficulty: Uint256,
|
||||||
|
pub terminal_block_hash: Hash256,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Networking
|
* Networking
|
||||||
@@ -483,6 +484,7 @@ impl ChainSpec {
|
|||||||
terminal_total_difficulty: Uint256::MAX
|
terminal_total_difficulty: Uint256::MAX
|
||||||
.checked_sub(Uint256::from(2u64.pow(10)))
|
.checked_sub(Uint256::from(2u64.pow(10)))
|
||||||
.expect("calculation does not overflow"),
|
.expect("calculation does not overflow"),
|
||||||
|
terminal_block_hash: Hash256::zero(),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Network specific
|
* Network specific
|
||||||
|
|||||||
Reference in New Issue
Block a user