Skip to content

Conversation

@bamrith
Copy link
Contributor

@bamrith bamrith commented Oct 23, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 23, 2025 15:34
Copy link

Copilot AI left a 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.

@bamrith bamrith force-pushed the bharath/fetch_toml_files branch 5 times, most recently from 7f6bb22 to d04761a Compare October 23, 2025 22:44
@bamrith bamrith force-pushed the bharath/fetch_toml_files branch from d04761a to cfd0f2e Compare October 24, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants