Skip to content

Commit 24aa890

Browse files
ceyonurCopilot
andauthored
ACP-226: add initial delay excess (#4300)
Signed-off-by: Ceyhun Onur <[email protected]> Signed-off-by: Ceyhun Onur <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 0d342da commit 24aa890

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

vms/evm/acp226/acp226.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ const (
2121
// MaxDelayExcessDiff (Q) is the maximum change in excess per update
2222
MaxDelayExcessDiff = 200
2323

24+
// InitialDelayExcess represents the initial (≈2000ms) delay excess.
25+
// Formula: ConversionRate (2^20) * ln(2000) + 1
26+
InitialDelayExcess = 7_970_124
27+
2428
maxDelayExcess = 46_516_320 // ConversionRate * ln(MaxUint64 / MinDelayMilliseconds) + 1
2529
)
2630

vms/evm/acp226/acp226_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ var (
4949
delay: 1000,
5050
},
5151
{
52-
name: "2000ms_delay",
53-
excess: 7_970_124, // ConversionRate (2^20) * ln(2000) + 1
52+
name: "2000ms_delay_initial",
53+
excess: InitialDelayExcess, // ConversionRate (2^20) * ln(2000) + 1
5454
delay: 2000,
5555
},
5656
{

0 commit comments

Comments
 (0)