Skip to content
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

[Forknet] MVP of stateless validation upgradability test in CI #10922

Open
3 tasks
Tracked by #10542
posvyatokum opened this issue Apr 3, 2024 · 2 comments
Open
3 tasks
Tracked by #10542

[Forknet] MVP of stateless validation upgradability test in CI #10922

posvyatokum opened this issue Apr 3, 2024 · 2 comments
Assignees

Comments

@posvyatokum
Copy link
Member

posvyatokum commented Apr 3, 2024

This is a tracking issue for the April effort of using forknet to add transition to stateless validation into our CI.

Tasks

Preview Give feedback
  1. A-stateless-validation
    VanBarbascu marcelo-gonzalez
@posvyatokum
Copy link
Member Author

@marcelo-gonzalez When you have time, add tasks that you can think of to the tasklist in the description.

@posvyatokum
Copy link
Member Author

@marcelo-gonzalez I see our basic improved flow like this:

Preparation:

Independently of the test and in advance of starting it, prepare a node image.
Node image is prepared via running init, amend-access-keys, and finalise in fork-network tool.

Test Setup (new part):

  • Create a network of nodes from prepared images.
  • Generate validator keys for all nodes
  • Distribute validator keys
  • Distribute list of validators and stakes to all nodes
  • Run fork-network init and fork-network set-validators on all nodes. Don't run finalise, as this will allow us to quickly revert back to original state by running reset.
  • Amend genesis config separately as a json (we can do it without any extra logic, just by running jq or something)

Test Setup (± old part):

  • Generate, and distribute node keys
  • Change configs (including boot_nodes)

Test (no changes):

  • Start nodes
  • Start traffic

I see us generating and distributing keys instead of using neard on machines to generate them for two reasons:

  • I don't know how init command are going to play with home dir that gone through fork-network
  • This flow is more natural in my mind (purely subjective)

I prepared this draft PR to show how I see keys management in forknet. Please, take a look #10956.

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

No branches or pull requests

2 participants