From 1135a8f7832b886cbf0ee5f0de134976b47dcd20 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 28 Sep 2021 14:29:10 +1000 Subject: [PATCH] Add terminal_block_hash to ChainSpec --- consensus/types/src/chain_spec.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consensus/types/src/chain_spec.rs b/consensus/types/src/chain_spec.rs index 69fd38b818..25c73018d7 100644 --- a/consensus/types/src/chain_spec.rs +++ b/consensus/types/src/chain_spec.rs @@ -131,6 +131,7 @@ pub struct ChainSpec { /// The Merge fork epoch is optional, with `None` representing "Merge never happens". pub merge_fork_epoch: Option, 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