Repository navigation
Whitelist and stake FAIR boot nodes - #143
Merged
Merged
Conversation
dmytrotkk
approved these changes
Sep 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the deployment and initialization process for Fair manager contracts in the
skale-nodes/ansiblesetup. 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
roles/deploy_fair/tasks/main.yamlinto two separate files:deploy_fair.yamlfor contract deployment andwhitelist_and_stake.yamlfor node whitelisting and staking. This makes the playbook more maintainable and easier to extend.whitelist_and_stake.yamlto execute thewhitelist_and_stake.pyscript, automating node whitelisting and staking after contract deployment.Python Script for Whitelisting and Staking
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
ansible.cfgfile with defaults to disable host key checking and enable YAML output, improving Ansible usability and output readability.Fair Node Initialization Enhancements
roles/init/tasks/main.yamlto add a conditional step for appending a--snapshotflag to the sync command for Fair nodes when a snapshot is defined, improving node initialization flexibility.