Skip to content

Commit

Permalink
add constants
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 1, 2023
1 parent be6dfd1 commit eb13295
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public class Eth2NetworkConfiguration {
// 26 thousand years should be enough
public static final Integer MAX_EPOCHS_STORE_BLOBS = Integer.MAX_VALUE;

private static final String MAINNET_TRUSTED_SETUP_FILENAME = "mainnet-trusted-setup.txt";
private static final String MINIMAL_TRUSTED_SETUP_FILENAME = "minimal-trusted-setup.txt";

private final Spec spec;
private final String constants;
private final Optional<String> initialState;
Expand Down Expand Up @@ -622,7 +625,7 @@ public Builder applyTestnetDefaults() {

public Builder applyMinimalNetworkDefaults() {
return applyTestnetDefaults()
.trustedSetupFromClasspath("minimal-trusted-setup.txt")
.trustedSetupFromClasspath(MINIMAL_TRUSTED_SETUP_FILENAME)
.constants(MINIMAL.configName())
.startupTargetPeerCount(0);
}
Expand All @@ -640,7 +643,7 @@ public Builder applyMainnetNetworkDefaults() {
.constants(MAINNET.configName())
.initialStateFromClasspath("mainnet-genesis.ssz")
.genesisStateFromClasspath("mainnet-genesis.ssz")
.trustedSetupFromClasspath("mainnet-trusted-setup.txt")
.trustedSetupFromClasspath(MAINNET_TRUSTED_SETUP_FILENAME)
.startupTimeoutSeconds(120)
.eth1DepositContractDeployBlock(11052984)
.discoveryBootnodes(
Expand Down

0 comments on commit eb13295

Please sign in to comment.