-
Notifications
You must be signed in to change notification settings - Fork 292
Try fetching remote forkpoint.toml and validators.toml on startup #2484
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
Conversation
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.
Pull Request Overview
This PR adds functionality to fetch remote forkpoint and validators configuration files on node startup, falling back to local configs if remote fetching fails. The node compares remote and local forkpoint rounds to determine which is more recent.
- Introduces environment variables for remote config URLs and HTTP client logic to fetch configurations
- Refactors config loading to prioritize more recent remote configs over local ones
- Updates struct fields to use parsed validators config instead of file path
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| monad-node/src/state.rs | Adds remote config fetching logic with round-based comparison and fallback to local configs |
| monad-node/src/main.rs | Removes redundant validators config loading by using pre-loaded config from NodeState |
| monad-node/Cargo.toml | Adds reqwest dependency with blocking feature for HTTP requests |
| monad-node-config/src/lib.rs | Introduces ValidatorsConfigType alias for type consistency |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
d04761a to
cfd0f2e
Compare
cfd0f2e to
8173fd2
Compare
8173fd2 to
156af23
Compare
156af23 to
b2625ea
Compare
No description provided.