anza-xyz / validator-lab

Deploy and test your new Agave validator features in a kubernetes-based cluster
https://www.anza.xyz/
7 stars 4 forks source link

Add stake to internal_node_sol #59

Closed CriesofCarrots closed 3 months ago

CriesofCarrots commented 3 months ago

The stake delegated to additional (non-bootstrap) validators is funded by each of those node's respective identity key. This means that if you choose an --internal-node-stake-sol value that is larger than the default value for --internal-node-sol, the stake delegation will fail and the node will not boot. This is an annoying thing to have to remember, particularly because the --bootstrap-validator-sol and --bootstrap-validator-stake-sol args do not have this same requirement.

Update internal_node_sol to equal the value provided by the --internal-node-sol plus internal_node_stake_sol so that the id account always has enough to cover the delegation, and the remaining amount is (close to) the configured internal node sol. (close to, but not exact, due to transaction fees)

CriesofCarrots commented 3 months ago

I know the behavior was inherited from the /net scripts, but it's always been annoying and imho wrong