-
Notifications
You must be signed in to change notification settings - Fork 22
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 fetch flags #10
Add fetch flags #10
Conversation
Thank you! Looks good. Could you also add 2 more things:
|
Regarding your second point, I think this is in the area of API versioning which is tricky and requires some more thought. For now I have implemented a temporary solution and come up with a better solution later |
cmd/flags.go
Outdated
flags.Error = result | ||
} | ||
if err := templ.ExecuteTemplate(w, "flags.html", flags); err != nil { | ||
fmt.Fprintf(w, "Executing versions template: %v", err) |
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.
Needs to say flags template
} | ||
|
||
if versions.NodeVersion < 2 { | ||
fmt.Fprintf(w, "Flags only support version >= 2. Node version: %d", versions.NodeVersion) |
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.
That's probably good enough for now, we shall test it
We can have your temporary solution and add a next improvement idea to what you come up with (I am curious about your idea of how to make it better) |
This PR is in conjunction with #7417 in Erigon.
This creates
Fetch Flags
button andui/flags
inui_handler.go
to fetch context flags via/debug/metrics/flags
in Erigon.