Skip to content

Commit f465785

Browse files
committed
Use placeholder TTD for minimal spec
1 parent 710d160 commit f465785

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

consensus/types/src/chain_spec.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,13 @@ impl ChainSpec {
616616
// Merge
617617
bellatrix_fork_version: [0x02, 0x00, 0x00, 0x01],
618618
bellatrix_fork_epoch: None,
619+
terminal_total_difficulty: Uint256::MAX
620+
.checked_sub(Uint256::from(2u64.pow(10)))
621+
.expect("subtraction does not overflow")
622+
// Add 1 since the spec declares `2**256 - 2**10` and we use
623+
// `Uint256::MAX` which is `2*256- 1`.
624+
.checked_add(Uint256::one())
625+
.expect("addition does not overflow"),
619626
// Other
620627
network_id: 2, // lighthouse testnet network id
621628
deposit_chain_id: 5,

0 commit comments

Comments
 (0)