mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-23 15:14:32 +00:00
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:
parent
87a2d57b96
commit
319a92458d
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue