Merge PR #5166: Add pruning constants and fix template
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user