refactor!: remove broadcast mode block (#12659)
This commit is contained in:
+24
-24
@@ -85,8 +85,8 @@ type BaseConfig struct {
|
||||
// IavlCacheSize set the size of the iavl tree cache.
|
||||
IAVLCacheSize uint64 `mapstructure:"iavl-cache-size"`
|
||||
|
||||
// IAVLDisableFastnNode enables or disables the fast sync node.
|
||||
IAVLDisableFastnNode bool `mapstructure:"iavl-disable-fastnode"`
|
||||
// IAVLDisableFastNode enables or disables the fast sync node.
|
||||
IAVLDisableFastNode bool `mapstructure:"iavl-disable-fastnode"`
|
||||
|
||||
// AppDBBackend defines the type of Database to use for the application and snapshots databases.
|
||||
// An empty string indicates that the Tendermint config's DBBackend value should be used.
|
||||
@@ -240,16 +240,16 @@ func (c *Config) GetMinGasPrices() sdk.DecCoins {
|
||||
func DefaultConfig() *Config {
|
||||
return &Config{
|
||||
BaseConfig: BaseConfig{
|
||||
MinGasPrices: defaultMinGasPrices,
|
||||
InterBlockCache: true,
|
||||
Pruning: pruningtypes.PruningOptionDefault,
|
||||
PruningKeepRecent: "0",
|
||||
PruningInterval: "0",
|
||||
MinRetainBlocks: 0,
|
||||
IndexEvents: make([]string, 0),
|
||||
IAVLCacheSize: 781250, // 50 MB
|
||||
IAVLDisableFastnNode: false,
|
||||
AppDBBackend: "",
|
||||
MinGasPrices: defaultMinGasPrices,
|
||||
InterBlockCache: true,
|
||||
Pruning: pruningtypes.PruningOptionDefault,
|
||||
PruningKeepRecent: "0",
|
||||
PruningInterval: "0",
|
||||
MinRetainBlocks: 0,
|
||||
IndexEvents: make([]string, 0),
|
||||
IAVLCacheSize: 781250, // 50 MB
|
||||
IAVLDisableFastNode: false,
|
||||
AppDBBackend: "",
|
||||
},
|
||||
Telemetry: telemetry.Config{
|
||||
Enabled: false,
|
||||
@@ -311,18 +311,18 @@ func GetConfig(v *viper.Viper) (Config, error) {
|
||||
|
||||
return Config{
|
||||
BaseConfig: BaseConfig{
|
||||
MinGasPrices: v.GetString("minimum-gas-prices"),
|
||||
InterBlockCache: v.GetBool("inter-block-cache"),
|
||||
Pruning: v.GetString("pruning"),
|
||||
PruningKeepRecent: v.GetString("pruning-keep-recent"),
|
||||
PruningInterval: v.GetString("pruning-interval"),
|
||||
HaltHeight: v.GetUint64("halt-height"),
|
||||
HaltTime: v.GetUint64("halt-time"),
|
||||
IndexEvents: v.GetStringSlice("index-events"),
|
||||
MinRetainBlocks: v.GetUint64("min-retain-blocks"),
|
||||
IAVLCacheSize: v.GetUint64("iavl-cache-size"),
|
||||
IAVLDisableFastnNode: v.GetBool("iavl-disable-fastnode"),
|
||||
AppDBBackend: v.GetString("app-db-backend"),
|
||||
MinGasPrices: v.GetString("minimum-gas-prices"),
|
||||
InterBlockCache: v.GetBool("inter-block-cache"),
|
||||
Pruning: v.GetString("pruning"),
|
||||
PruningKeepRecent: v.GetString("pruning-keep-recent"),
|
||||
PruningInterval: v.GetString("pruning-interval"),
|
||||
HaltHeight: v.GetUint64("halt-height"),
|
||||
HaltTime: v.GetUint64("halt-time"),
|
||||
IndexEvents: v.GetStringSlice("index-events"),
|
||||
MinRetainBlocks: v.GetUint64("min-retain-blocks"),
|
||||
IAVLCacheSize: v.GetUint64("iavl-cache-size"),
|
||||
IAVLDisableFastNode: v.GetBool("iavl-disable-fastnode"),
|
||||
AppDBBackend: v.GetString("app-db-backend"),
|
||||
},
|
||||
Telemetry: telemetry.Config{
|
||||
ServiceName: v.GetString("telemetry.service-name"),
|
||||
|
||||
@@ -74,9 +74,9 @@ index-events = [{{ range .BaseConfig.IndexEvents }}{{ printf "%q, " . }}{{end}}]
|
||||
# Default cache size is 50mb.
|
||||
iavl-cache-size = {{ .BaseConfig.IAVLCacheSize }}
|
||||
|
||||
# IavlDisableFastnNode enables or disables the fast node feature of IAVL.
|
||||
# IAVLDisableFastNode enables or disables the fast node feature of IAVL.
|
||||
# Default is false.
|
||||
iavl-disable-fastnode = {{ .BaseConfig.IAVLDisableFastnNode }}
|
||||
iavl-disable-fastnode = {{ .BaseConfig.IAVLDisableFastNode }}
|
||||
|
||||
# AppDBBackend defines the database backend type to use for the application and snapshots DBs.
|
||||
# An empty string indicates that a fallback will be used.
|
||||
|
||||
Reference in New Issue
Block a user