diff --git a/besu/src/main/java/org/hyperledger/besu/cli/config/ProfileName.java b/besu/src/main/java/org/hyperledger/besu/cli/config/ProfileName.java index 823dd9f142c..bc5aeea4c9d 100644 --- a/besu/src/main/java/org/hyperledger/besu/cli/config/ProfileName.java +++ b/besu/src/main/java/org/hyperledger/besu/cli/config/ProfileName.java @@ -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"); @@ -38,4 +43,9 @@ public enum ProfileName { public String getConfigFile() { return configFile; } + + @Override + public String toString() { + return StringUtils.capitalize(name().replaceAll("_", " ").toLowerCase()); + } } diff --git a/config/src/main/resources/profiles/minimalist-staker.toml b/config/src/main/resources/profiles/minimalist-staker.toml new file mode 100644 index 00000000000..f465b00bf43 --- /dev/null +++ b/config/src/main/resources/profiles/minimalist-staker.toml @@ -0,0 +1,4 @@ +sync-mode="X_CHECKPOINT" +data-storage-format="BONSAI" +bonsai-historical-block-limit=128 +max-peers=25 \ No newline at end of file