Skip to content

Commit

Permalink
New ropsten TTD (#4068)
Browse files Browse the repository at this point in the history
* new TTD

* PoSSwitcher small fix
  • Loading branch information
MarekM25 committed May 26, 2022
1 parent b7cafb8 commit 155ca7a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Nethermind/Chains/ropsten.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"eip3198Transition": "0xA03549",
"eip3529Transition": "0xA03549",
"eip3541Transition": "0xA03549",
"terminalTotalDifficulty": "9AA7E6F278147E"
"terminalTotalDifficulty": "152D02C7E14AF6800000"
},
"genesis": {
"seal": {
Expand Down
5 changes: 2 additions & 3 deletions src/Nethermind/Nethermind.Merge.Plugin/PoSSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,12 @@ private void Initialize()
{
LoadTerminalBlock();
LoadFinalizedBlockHash();
_specProvider.UpdateMergeTransitionInfo(_firstPoSBlockNumber, _mergeConfig.TerminalTotalDifficultyParsed);
LoadFinalTotalDifficulty();

if (_terminalBlockNumber != null || _finalTotalDifficulty != null)
_hasEverReachedTerminalDifficulty = true;

_specProvider.UpdateMergeTransitionInfo(_firstPoSBlockNumber, _mergeConfig.TerminalTotalDifficultyParsed);

LoadFinalTotalDifficulty();
if (_terminalBlockNumber == null)
_blockTree.NewHeadBlock += CheckIfTerminalBlockReached;

Expand Down
2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.Runner/configs/ropsten.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
},
"Merge": {
"Enabled": true,
"TerminalTotalDifficulty": "43531756765713534"
"TerminalTotalDifficulty": "100000000000000000000000"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
},
"Merge": {
"Enabled": true,
"TerminalTotalDifficulty": "43531756765713534"
"TerminalTotalDifficulty": "100000000000000000000000"
}
}

0 comments on commit 155ca7a

Please sign in to comment.