Skip to content
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'master' into ceyonur/acp-176-226-refactor
  • Loading branch information
ceyonur committed Oct 6, 2025
commit 795236e08e39e5883142c098a3ae77a7047d38c6
7 changes: 4 additions & 3 deletions vms/evm/upgrades/acp226/acp226.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ var acp226Params = common.ExcessParams{
MaxExcess: maxDelayExcess,
}

// DelayExcess represents the excess for delay calculation in the dynamic minimum block delay mechanism.
// DelayExcess represents the excess for delay calculation in the dynamic
// minimum block delay mechanism.
type DelayExcess uint64

// Delay returns the minimum block delay in milliseconds, `m`.
Expand All @@ -42,8 +43,8 @@ func (t DelayExcess) Delay() uint64 {

// UpdateDelayExcess updates the DelayExcess to be as close as possible to the
// desiredDelayExcess without exceeding the maximum DelayExcess change.
func (t *DelayExcess) UpdateDelayExcess(desiredDelayExcess uint64) {
*t = DelayExcess(acp226Params.AdjustExcess(uint64(*t), desiredDelayExcess))
func (t *DelayExcess) UpdateDelayExcess(desiredDelayExcess DelayExcess) {
*t = DelayExcess(acp226Params.AdjustExcess(uint64(*t), uint64(desiredDelayExcess)))
}

// DesiredDelayExcess calculates the optimal delay excess given the desired
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.