feat: genesis in config API and metrics#4625
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
|
Claude finished @sveitser's task in 2m 36s —— View job Code Review:
|
| pub config_peers: Option<Vec<Url>>, | ||
| pub is_da: bool, | ||
| pub genesis_file: GenesisSource, | ||
| pub genesis: Genesis, |
There was a problem hiding this comment.
nit: The Genesis struct includes accounts: HashMap<FeeAccount, FeeAmount>, which in production genesis files could be a sizable map. Since this is public configuration data (all nodes share the same genesis), there's no security concern, but it may make the /config/runtime response notably larger on chains with many pre-funded accounts. Worth considering whether the accounts map should be excluded or summarized (e.g. just the count) if response size becomes an issue — but fine for now as an observability improvement.
There was a problem hiding this comment.
i think it's always empty, not sure what we have it for even
| PATH = ["/runtime"] | ||
| METHOD = "GET" | ||
| DOC = "Get the merged runtime configuration of the current node (CLI flags + env vars + defaults). Secrets and L1 RPC URLs are redacted; only counts (l1_provider_count, l1_ws_provider_count) are exposed." No newline at end of file | ||
| DOC = "Get the merged runtime configuration of the current node (CLI flags + env vars + defaults). Secrets and L1 RPC URLs are redacted; only counts (l1_provider_count, l1_ws_provider_count) are exposed. The response includes the resolved genesis configuration (parsed genesis TOML) under the `genesis` field." No newline at end of file |
There was a problem hiding this comment.
nit: Missing trailing newline — this file still doesn't end with \n. Not introduced by this PR (it was already missing), but easy to fix while you're touching this line.
| DOC = "Get the merged runtime configuration of the current node (CLI flags + env vars + defaults). Secrets and L1 RPC URLs are redacted; only counts (l1_provider_count, l1_ws_provider_count) are exposed. The response includes the resolved genesis configuration (parsed genesis TOML) under the `genesis` field." | |
| DOC = "Get the merged runtime configuration of the current node (CLI flags + env vars + defaults). Secrets and L1 RPC URLs are redacted; only counts (l1_provider_count, l1_ws_provider_count) are exposed. The response includes the resolved genesis configuration (parsed genesis TOML) under the `genesis` field." |
Nextest failures (1) in this run
See the step summary for flaky tests and slowest tests. |
|
Successfully created backport PR for |
…etrics (#4627) feat: genesis in config API and metrics (#4625) * feat: genesis in config API and metrics * test: configure an upgrade for snapshot test * chore: exclude snaphots from typos * fix: slow test compilation (cherry picked from commit 3ac07a2) Co-authored-by: Mathis <mathis@espressosys.com>
No description provided.