-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add more command flags #312
Conversation
cmd/check_construction.go
Outdated
@@ -76,6 +77,7 @@ func runCheckConstructionCmd(_ *cobra.Command, _ []string) error { | |||
fetcherOpts = append(fetcherOpts, fetcher.WithForceRetry()) | |||
} | |||
|
|||
log.Println("node url: ", Config.OnlineURL) |
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.
do we need this
cmd/root.go
Outdated
@@ -48,6 +48,8 @@ var ( | |||
cpuProfile string | |||
memProfile string | |||
blockProfile string | |||
onlineUrl string |
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.
fix ident
// Override start and end syncing index in configuration file when it's explicitly set via CLI | ||
if startIndex != -1 { | ||
Config.Data.StartIndex = &startIndex | ||
Config.Data.InitialBalanceFetchDisabled = false |
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.
Please add comments why we toggle the flag.
36523f8
to
342cb05
Compare
Fixes # .
Motivation
Added node-url flag to
check:data
andcheck:construction
, so that node url can be set via CLI, overriding the value in configuration file.Added start and end index as flags to
check:data
as well.Solution
Open questions