Skip to content

Conversation

@samliok
Copy link
Contributor

@samliok samliok commented Sep 11, 2025

Why this should be merged

In the case of a restart, the nodes URI may have changed to a different port. Previously this would have caused errors later on when adding the validators since we were passing in a stale URI.

How this works

How this was tested

Need to be documented in RELEASES.md?

Copilot AI review requested due to automatic review settings September 11, 2025 17:55
Copy link
Contributor

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 fixes a stale URI issue in subnet creation by passing the API node object instead of a pre-fetched URI string. This prevents errors when nodes restart and change ports between URI fetching and validator addition.

  • Modifies CreateSubnets function to accept a *Node parameter instead of a URI string
  • Updates the Bootstrap method to pass the node object directly
  • Ensures fresh URI is obtained after node restarts

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@joshua-kim joshua-kim added this pull request to the merge queue Sep 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Sep 11, 2025
Signed-off-by: Sam Liokumovich <65994425+samliok@users.noreply.github.com>
@maru-ava maru-ava added this pull request to the merge queue Sep 12, 2025
Merged via the queue into master with commit e5fd77b Sep 12, 2025
35 checks passed
@maru-ava maru-ava deleted the tests-api-node branch September 12, 2025 22:08
@github-project-automation github-project-automation bot moved this to Done 🎉 in avalanchego Sep 12, 2025
felipemadero pushed a commit that referenced this pull request Sep 15, 2025
Signed-off-by: Sam Liokumovich <65994425+samliok@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants