feat: configurable fastnode (#13321)

This commit is contained in:
Marko
2022-09-20 08:49:18 +00:00
committed by GitHub
parent 822900b69f
commit 412e2fc86e
23 changed files with 109 additions and 75 deletions
+2
View File
@@ -145,6 +145,7 @@ func initAppConfig() (string, interface{}) {
//
// In simapp, we set the min gas prices to 0.
srvCfg.MinGasPrices = "0stake"
// srvCfg.BaseConfig.IAVLDisableFastnNode = true // disable fastnode by default
customAppConfig := CustomAppConfig{
Config: *srvCfg,
@@ -304,6 +305,7 @@ func newApp(
baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))),
baseapp.SetSnapshot(snapshotStore, snapshotOptions),
baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))),
baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagIAVLFastNode))),
)
}