Skip to content

Commit a653798

Browse files
feat(cli): Add iavl-disable-fastnode cmd flag with proper description (#13656) (#13659)
(cherry picked from commit c833190) Co-authored-by: William Chong <6198816+williamchong@users.noreply.github.com>
1 parent ec09eae commit a653798

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

server/start.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ const (
5151
FlagTrace = "trace"
5252
FlagInvCheckPeriod = "inv-check-period"
5353

54-
FlagPruning = "pruning"
55-
FlagPruningKeepRecent = "pruning-keep-recent"
56-
FlagPruningInterval = "pruning-interval"
57-
FlagIndexEvents = "index-events"
58-
FlagMinRetainBlocks = "min-retain-blocks"
59-
FlagIAVLCacheSize = "iavl-cache-size"
60-
FlagIAVLFastNode = "iavl-disable-fastnode"
54+
FlagPruning = "pruning"
55+
FlagPruningKeepRecent = "pruning-keep-recent"
56+
FlagPruningInterval = "pruning-interval"
57+
FlagIndexEvents = "index-events"
58+
FlagMinRetainBlocks = "min-retain-blocks"
59+
FlagIAVLCacheSize = "iavl-cache-size"
60+
FlagDisableIAVLFastNode = "iavl-disable-fastnode"
6161

6262
// state sync-related flags
6363
FlagStateSyncSnapshotInterval = "state-sync.snapshot-interval"
@@ -188,6 +188,8 @@ is performed. Note, when enabled, gRPC will also be automatically enabled.
188188
cmd.Flags().Uint64(FlagStateSyncSnapshotInterval, 0, "State sync snapshot interval")
189189
cmd.Flags().Uint32(FlagStateSyncSnapshotKeepRecent, 2, "State sync snapshot to keep")
190190

191+
cmd.Flags().Bool(FlagDisableIAVLFastNode, false, "Disable fast node for IAVL tree")
192+
191193
// add support for all Tendermint-specific command line options
192194
tcmd.AddNodeFlags(cmd)
193195
return cmd

simapp/simd/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func (a appCreator) newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, a
295295
baseapp.SetIndexEvents(cast.ToStringSlice(appOpts.Get(server.FlagIndexEvents))),
296296
baseapp.SetSnapshot(snapshotStore, snapshotOptions),
297297
baseapp.SetIAVLCacheSize(cast.ToInt(appOpts.Get(server.FlagIAVLCacheSize))),
298-
baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagIAVLFastNode))),
298+
baseapp.SetIAVLDisableFastNode(cast.ToBool(appOpts.Get(server.FlagDisableIAVLFastNode))),
299299
)
300300
}
301301

0 commit comments

Comments
 (0)