Merge PR #5166: Add pruning constants and fix template

This commit is contained in:
Alexander Bezobchuk
2019-10-09 15:57:12 -04:00
committed by GitHub
parent ee404e96ab
commit 8d7cc5e08d
3 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"fmt"
"strings"
"github.com/cosmos/cosmos-sdk/store"
sdk "github.com/cosmos/cosmos-sdk/types"
)
@@ -77,7 +78,7 @@ func DefaultConfig() *Config {
BaseConfig{
MinGasPrices: defaultMinGasPrices,
InterBlockCache: true,
Pruning: "syncable",
Pruning: store.PruningStrategySyncable,
},
}
}
+1 -1
View File
@@ -40,7 +40,7 @@ inter-block-cache = {{ .BaseConfig.InterBlockCache }}
# syncable: only those states not needed for state syncing will be deleted (keeps last 100 + every 10000th)
# nothing: all historic states will be saved, nothing will be deleted (i.e. archiving node)
# everything: all saved states will be deleted, storing only the current state
pruning = {{ .BaseConfig.Pruning }}
pruning = "{{ .BaseConfig.Pruning }}"
`
var configTemplate *template.Template