-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add flag to enable or disable heavy queries #258
Conversation
server/start.go
Outdated
@@ -186,6 +188,7 @@ is performed. Note, when enabled, gRPC will also be automatically enabled. | |||
cmd.Flags().Uint(FlagInvCheckPeriod, 0, "Assert registered invariants every N blocks") | |||
cmd.Flags().Uint64(FlagMinRetainBlocks, 0, "Minimum block height offset during ABCI commit to prune Tendermint blocks") | |||
cmd.Flags().String(FlagEventing, sdk.EventingOptionEverything, "Eventing strategy (everything|nothing)") | |||
cmd.Flags().Bool(FlagEnableUnsafeQuery, true, "Define if unsafe query should be enabled (unsafe - use it at your own risk)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default value should be false, user need to set it to true only they know what exact it means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Wired, the latest commit does not display here. |
After changing base branch, it shows. |
Description
This pr will add a flag
enable-unsafe-query
to enable/disable heavy or unsafe queries.Rationale
Some queries are very heavy, we should have a flag to enable or disable such queries.
Example
Changes
Notable changes: