Skip to content

Commit

Permalink
restore benchmark defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
tkstanczak committed Aug 27, 2019
1 parent 01c16cc commit b5cf11a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Nethermind/Nethermind.PerfTest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ private static async Task RunBenchmarkBlocks()

/* load spec */
ChainSpecLoader loader = new ChainSpecLoader(new EthereumJsonSerializer());
string path = Path.Combine(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"chainspec", "sokol.json"));
string path = Path.Combine(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"chainspec", "ropsten.json"));
_logger.Info($"Loading ChainSpec from {path}");
ChainSpec chainSpec = loader.Load(File.ReadAllBytes(path));
_logger.Info($"ChainSpec loaded");
Expand Down Expand Up @@ -336,11 +336,7 @@ private static async Task RunBenchmarkBlocks()
_logger.Info($"Finalizing genesis...");
chainSpec.Genesis.Header.StateRoot = stateProvider.StateRoot;
chainSpec.Genesis.Header.Hash = BlockHeader.CalculateHash(chainSpec.Genesis.Header);
// if (chainSpec.Genesis.Hash != new Keccak("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"))
// {
// throw new Exception("Unexpected genesis hash");
// }
//

if (chainSpec.Genesis.Hash != blockTree.Genesis.Hash)
{
throw new Exception("Unexpected genesis hash");
Expand Down

0 comments on commit b5cf11a

Please sign in to comment.