Skip to content

Whitelist and stake FAIR boot nodes - #143

Merged
dmytrotkk merged 13 commits into
developfrom
whitelist-and-stake-after-fair-deployment
Sep 24, 2025
Merged

dmytrotkk merged 13 commits into
developfrom
whitelist-and-stake-after-fair-deployment

Conversation

@alexgex

@alexgex alexgex commented Sep 19, 2025 •

Copy link
Copy Markdown
Contributor

This pull request refactors the deployment and initialization process for Fair manager contracts in the skale-nodes/ansible setup. The main changes include modularizing Ansible tasks, introducing a new Python script for whitelisting and staking nodes, and improving configuration and initialization logic for Fair nodes.

Ansible Task Modularization and New Features

  • Split the main deployment tasks in roles/deploy_fair/tasks/main.yaml into two separate files: deploy_fair.yaml for contract deployment and whitelist_and_stake.yaml for node whitelisting and staking. This makes the playbook more maintainable and easier to extend.
  • Added a new task in whitelist_and_stake.yaml to execute the whitelist_and_stake.py script, automating node whitelisting and staking after contract deployment.

Python Script for Whitelisting and Staking

  • Introduced files/whitelist_and_stake.py, a Python script that programmatically whitelists and stakes all active nodes using environment variables for configuration. The script handles errors and logs progress for each node.

Configuration Improvements

  • Added a new ansible.cfg file with defaults to disable host key checking and enable YAML output, improving Ansible usability and output readability.

Fair Node Initialization Enhancements

  • Updated roles/init/tasks/main.yaml to add a conditional step for appending a --snapshot flag to the sync command for Fair nodes when a snapshot is defined, improving node initialization flexibility.
  • Minor style change: switched double to single quotes for the Fair node type check for consistency.

@alexgex alexgex linked an issue Sep 19, 2025 that may be closed by this pull request
@alexgex alexgex changed the title Whitelist and stake after FAIR nodes deployment Whitelist and stake FAIR boot nodes Sep 22, 2025
@alexgex alexgex linked an issue Sep 22, 2025 that may be closed by this pull request
@dmytrotkk
dmytrotkk merged commit 0a964f3 into develop Sep 24, 2025
@dmytrotkk
dmytrotkk deleted the whitelist-and-stake-after-fair-deployment branch September 24, 2025 14:57
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.

Add FAIR Node whitelisting and staking Add snapshot option to the fair passive node init command

3 participants