-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Objective
Improve the monitoring of metrics in the 0L Explorer that directly influence the composition of the validator set. These metrics will assist mechanism designers of the Proof of Fee in understanding network behaviors and help validators in decision-making regarding bids and vouches.
Context on Recent Updates in Consensus Mechanism Complexity
Recent PRs in the Libra framework have introduced additional complexity aimed at improving the consensus mechanism, necessitating enhanced information display for validators in their decision-making processes:
-
PR #299: This pull request reduces the number of seats available after the boot-up threshold, improves bid competition among qualified bidders, and ensures randomness by shuffling validator addresses with the same bid value after a bubble sort.
-
PR #303: This pull request establishes a maximum limit on the number of vouches per validator, increases the cost of each vouch, and reduces the validity time of vouches.
Reason
Enhanced visibility into metrics that affect validator set dynamics is crucial for validators to strategize their bids and vouches efficiently. It also aids in the overall transparency and operational insight of the network.
Features
Metric Displays for Upcoming Epoch
The initial set of metrics to be displayed on the Explorer for the upcoming epoch includes:
- Eligible Validators Count: Number of validators eligible for the validator set.
- Musical Chairs Seats: Number of seats to be released by Musical Chairs.
- Proof of Fee Seats: Number of seats to be released by Proof of Fee.
- Estimated Total Seats: Total seats estimated for the next epoch.
- Required Vouches: Number of vouches required for the next epoch.
- Vouch Cost: Current cost per vouch.
- Current and Estimated Rewards: Display of current reward and the reward estimated for the next epoch.
Validator Set Consideration Table
Additionally, a table will be created to display validators considered for filling the validator set for the next epoch. The table will include the following columns:
| Rank | Validator Address | Discord Username | Vouches Received/Given | Bid % + Qualification | Balance |
|---|---|---|---|---|---|
| 1 | 0x1234 |
user1#1234 |
5/7 | 60.0% ✅ | 10,000 |
| 2 | 0x5678 |
user2#5678 |
3/5 | 58.5% ✅ | 8,000 |
| ... | ... |
... |
... |
... |
... |
| 25 | 0x9ABC |
user25#abcd |
4/4 | 10.0% 🍀 | 5,000 |
| 26 | 0xDEF0 |
user26#def0 |
2/3 | 10.0% 🍀 | 4,500 |
| 27 | 0xCAFE |
user27#cafe |
3/3 | 5.0% ❌ | 4,500 |
- Rank: Higher bids obtain a better rank position; the highest bid takes position 1.
- Qualification: A green check (✅) icon for qualifying bids, a red cross (❌) for disqualifying bids, and a clover (🍀) icon for tied bids that will be randomly selected to fill the remaining seats in the validator set.
Vouch Detail Table
Implement a feature to display detailed vouch information for each validator on their respective account page, including the status of each vouch (whether it is expired or the number of epochs remaining before it expires).
| Validator Address | Username | Vouch Type | Vouch Status | Epochs Remaining |
|---|---|---|---|---|
0x1234 |
user1#1234 |
Given | Active | 3 |
0x1234 |
user1#1234 |
Received | Expired | 0 |
0x5678 |
user2#5678 |
Given | Active | 2 |
0x5678 |
user2#5678 |
Received | Active | 5 |