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

Clarify EndAccumulatedFee comment #3523

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions vms/platformvm/state/subnet_only_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ type SubnetOnlyValidator struct {
// the weight is being set to 0, which removes the validator from the set.
MinNonce uint64 `serialize:"true"`

// EndAccumulatedFee is the amount of globally accumulated fees that can
// accrue before this validator must be deactivated. It is equal to the
// amount of fees this validator is willing to pay plus the amount of
// globally accumulated fees when this validator started validating.
// EndAccumulatedFee is the amount of accumulated fees per validator that
// can accrue before this validator must be deactivated. It is equal to the
// amount of fees this validator is willing to pay plus the total amount of
// fees a validator would have needed to pay from the activation of the Etna
// upgrade until this validator was registered. Note that this relies on the
// fact that every validator is charged the same fee for each unit of time.
//
// If this value is 0, the validator is inactive.
EndAccumulatedFee uint64 `serialize:"true"`
Expand Down
Loading