feat(params): export newTimestampCompatError with alias NewTimestampCompatError (#168)

Signed-off-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
This commit is contained in:
Quentin McGaw 2025-03-25 20:40:27 +01:00 committed by GitHub
parent 87a2d57b96
commit 319a92458d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}