Skip to content

Commit

Permalink
Add minimalist staker profile (#6449)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel-Trintinalia <[email protected]>
  • Loading branch information
Gabriel-Trintinalia authored Feb 1, 2024
1 parent b68ee44 commit 94c3f60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@
*/
package org.hyperledger.besu.cli.config;

import org.apache.commons.lang3.StringUtils;

/** Enum for profile names. Each profile corresponds to a configuration file. */
public enum ProfileName {

/** The 'MINIMALIST_STAKER' profile */
MINIMALIST_STAKER("profiles/minimalist-staker.toml"),
/** The 'DEV' profile. Corresponds to the 'profiles/dev.toml' configuration file. */
DEV("profiles/dev.toml");

Expand All @@ -38,4 +43,9 @@ public enum ProfileName {
public String getConfigFile() {
return configFile;
}

@Override
public String toString() {
return StringUtils.capitalize(name().replaceAll("_", " ").toLowerCase());
}
}
4 changes: 4 additions & 0 deletions config/src/main/resources/profiles/minimalist-staker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sync-mode="X_CHECKPOINT"
data-storage-format="BONSAI"
bonsai-historical-block-limit=128
max-peers=25

0 comments on commit 94c3f60

Please sign in to comment.