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

Pos validator uptime #2379

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Pos validator uptime #2379

wants to merge 22 commits into from

Conversation

arturrez
Copy link
Collaborator

Why this should be merged

adds PoS proof of uptime support for removeValitor

How this works

if uptime is not provided, it's calculated from evm getCurrentValdators api.
Signature aggregator is used to sign proof of uptime msg which is submitted to ValidatorManager smart contract

How this was tested

./bin/avalanche node local start  --num-nodes 7 --etna-devnet local7
./bin/avalanche blockchain create pos7 --proof-of-stake  --force  --evm --reward-basis-points 10000000 // make sure that validator gets reward even after short staking period
./bin/avalanche blockchain deploy pos7 --cluster local7 --bootstrap-endpoints http://127.0.0.1:9650/,http://127.0.0.1:9652/,http://127.0.0.1:9654/,http://127.0.0.1:9656/,http://127.0.0.1:9658/  --convert-only
./bin/avalanche node local track local7 pos7
./bin/avalanche contract initValidatorManager pos7  --cluster local7
./bin/avalanche blockchain addValidator pos7  --cluster local7 --node-endpoint http://127.0.0.1:9660
sleep 120s
./bin/avalanche blockchain removeValidator pos7  --cluster local7 --node-endpoint http://127.0.0.1:9660

How is this documented

@arturrez arturrez requested a review from a team as a code owner November 27, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 🗄️
Development

Successfully merging this pull request may close these issues.

1 participant