Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Use fixed calculator at the right spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
rojotek committed Jan 26, 2019
1 parent 0d0b423 commit 5b53754
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public IbftConfigOptions getRevisedIbftConfigOptions() {
return IbftConfigOptions.DEFAULT;
}

@Override
public EthashConfigOptions getEthashConfigOptions() {
return EthashConfigOptions.DEFAULT;
}

@Override
public OptionalLong getHomesteadBlockNumber() {
return homesteadBlockNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
import tech.pegasys.pantheon.config.GenesisConfigFile;
import tech.pegasys.pantheon.config.GenesisConfigOptions;
import tech.pegasys.pantheon.ethereum.core.PrivacyParameters;
import tech.pegasys.pantheon.ethereum.development.DevelopmentDifficultyCalculators;

import java.util.function.Function;

/** Provides {@link ProtocolSpec} lookups for mainnet hard forks. */
public class MainnetProtocolSchedule {
Expand All @@ -38,10 +39,7 @@ public static ProtocolSchedule<Void> create() {
public static ProtocolSchedule<Void> fromConfig(
final GenesisConfigOptions config, final PrivacyParameters privacyParameters) {
return new ProtocolScheduleBuilder<>(
config,
DEFAULT_CHAIN_ID,
builder -> builder.difficultyCalculator(DevelopmentDifficultyCalculators.DEVELOPER),
privacyParameters)
config, DEFAULT_CHAIN_ID, Function.identity(), privacyParameters)
.createProtocolSchedule();
}
}

0 comments on commit 5b53754

Please sign in to comment.