solana/stake-o-matic
Felipe Lopes 817b163703 Stop removing stake from neutral nodes
This PR is a proposal to not remove stake from nodes that couldn't get any slot because their stake was too small.

This happened in testnet with at least 2 pubkeys:
ED3Y3cuH3wtHXT8TmbDE5toHU6kwQzevWtvkP6rGFNgc
5dB4Ygb8Sf3Sssdxxrpbb4NFX9bMrYnieiz11Vr5xJkJ

They were good producers in epoch 162 and in #tds-stake they were given 50k bonus stake.

But epoch 163 was a special one, lots of new joiners made nodes with a few stake (less than 1k) have a zero slot schedule.

Check lines 479 to 485. If a node didn't get a slot, the node is not considered a quality neither a poor producer, which is correct.

But removing its bonus stake in the line 1032 to 1050 is not correct IMHO...

We should consider someone good until they prove they are bad right? And if you don't give a single slot (chance) for them to prove there's no reason to say they were bad....

Thanks and I'm happy to discuss this more...
2021-02-25 20:08:48 -08:00
..
src Stop removing stake from neutral nodes 2021-02-25 20:08:48 -08:00
.gitignore
Cargo.toml
README.md
stake-o-matic.sh

README.md

Effortlessly Manage Cluster Stakes

The testnet and mainnet-beta clusters currently have a large population of validators that need to be staked by a central authority.

Staking Criteria

  1. All non-delinquent validators receive 50,000 SOL stake
  2. Additionally, non-deliquent validators that have produced a block in 75% of their slots in the previous epoch receive bonus stake of 500,000 SOL

A validator that is delinquent for more than 24 hours will have all stake removed. However stake-o-matic has no memory, so if the same validator resolves their delinquency then they will be re-staked again

Validator Whitelist

To be eligible for staking, a validator's identity pubkey must be added to a YAML whitelist file.

Stake Account Management

Stake-o-matic will split the individual validator stake accounts from a master stake account, and must be given the authorized staker keypair for the master stake account.