Description
Goal
Help clarify how to maintain a validator's balance whenever a new validator is created by printing helpful information.
Assumptions and Scope
Network creators and independent validators may not implicitly understand that a validator's Balance
needs to be watched and maintained >0 in order to avoid an interruption in validation of their L1.
Requirements
The requirements for this issue are listed in the order they should be completed. Each list item should have its own PR to simplify code review:
-
sdk function that takes a given validationID and returns the current balance.
-
sdk function that takes a balance, multiplies it by the current fee rate to return the "remaining validation time" denominated in seconds.
-
avalanche validator list
to include a new column that includestime remaining
denominated in days by utilizing the sdk function above. -
avalanche validator getBalance
to include a new column that includestime remaining
denominated in days by utilizing the sdk function above. -
during
avalanche validator increaseBalance
, print the output ofavalanche validator getBalance
which includes the estimated time remaining (after the fourth item in this list is completed). Also print the price to validate for 1 day at the current fee rate.At the current fee rate, _x_ AVAX is spent per day per L1 validator. How much AVAX would you like to increase your validator's balance by?
-
on the successful execution of
avalanche blockchain deploy <exampleL1>
, before termination, print the user the output ofavalanche validator list <exampleL1>
so they can view the current balance and time remaining per validator for their new network. Follow this list with a printed message that says:To avoid an interruption of service, an L1 validator must keep it's balance above 0 AVAX. To increase a validator's remaining validation time, you may add more AVAX to the validator balance with `avalanche validator increaseBalance`.
-
on the successful execution of
avalanche blockchain addValidator <exampleL1>
, before termination, print the user the output ofavalanche validator getBalance
so they can view the current balance and time remaining for their new validator. Follow this list with a printed message that says:To avoid an interruption of service, an L1 validator must keep it's balance above 0 AVAX. To increase a validator's remaining validation time, you may add more AVAX to the validator balance with `avalanche validator increaseBalance`.
Open Questions
Metadata
Metadata
Assignees
Labels
Type
Projects
Status