Skip to content

Commit 6217810

Browse files
Clarify EndAccumulatedFee comment (#3523)
1 parent 4ec0db9 commit 6217810

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

vms/platformvm/state/subnet_only_validator.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,12 @@ type SubnetOnlyValidator struct {
115115
// the weight is being set to 0, which removes the validator from the set.
116116
MinNonce uint64 `serialize:"true"`
117117

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

0 commit comments

Comments
 (0)