Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
blocks was referring to `blocks of code` and not blocks in a chain.
removed the confusing word
  • Loading branch information
MaxMustermann2 committed Dec 14, 2023
1 parent cf7af4e commit 50e5535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/chain/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ func setElectionEpochAndMinFee(chain engine.ChainReader, header *block.Header, s
// for all validators which have MaxRate < minRate + maxChangeRate
// set their MaxRate equal to the minRate + MaxChangeRate
// this will allow the wrapper.SanityCheck to pass if Rate is set to a value
// higher than the the MaxRate in the prior blocks
// higher than the the MaxRate by UpdateMinimumCommissionFee above
if config.IsMaxRate(newShardState.Epoch) && minRateNotZero {
for _, addr := range chain.ValidatorCandidates() {
if _, err := availability.UpdateMaxCommissionFee(state, addr, minRate); err != nil {
Expand Down

0 comments on commit 50e5535

Please sign in to comment.