mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-18 20:32:45 +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".
|
||||
pub merge_fork_epoch: Option<Epoch>,
|
||||
pub terminal_total_difficulty: Uint256,
|
||||
pub terminal_block_hash: Hash256,
|
||||
|
||||
/*
|
||||
* Networking
|
||||
@@ -483,6 +484,7 @@ impl ChainSpec {
|
||||
terminal_total_difficulty: Uint256::MAX
|
||||
.checked_sub(Uint256::from(2u64.pow(10)))
|
||||
.expect("calculation does not overflow"),
|
||||
terminal_block_hash: Hash256::zero(),
|
||||
|
||||
/*
|
||||
* Network specific
|
||||
|
||||
Reference in New Issue
Block a user