From 319a92458d062b021d375a431ed1c395f6714852 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 25 Mar 2025 20:40:27 +0100 Subject: [PATCH] feat(params): export `newTimestampCompatError` with alias `NewTimestampCompatError` (#168) Signed-off-by: Quentin McGaw Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> --- params/config.libevm.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/params/config.libevm.go b/params/config.libevm.go index 127f5febef..685a8cebae 100644 --- a/params/config.libevm.go +++ b/params/config.libevm.go @@ -216,3 +216,10 @@ func (r *Rules) extraPayload() *pseudo.Type { } return r.extra } + +// NewTimestampCompatError returns a new config-compatibility error indicating an incompatible timestamp. +func NewTimestampCompatError(what string, storedTime, newTime *uint64) *ConfigCompatError { + // If this breaks when merging a new version of `geth`, the wrapping function's signature MUST be + // changed to match as it exists only to export the function. + return newTimestampCompatError(what, storedTime, newTime) +}