engine_newPayloadV4 accepts ExecutionPayloadV3 (#2749)

This commit is contained in:
andri lim 2024-10-18 16:35:56 +07:00 committed by GitHub
parent 0b93236d1b
commit 0d4a5e87d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -40,9 +40,9 @@ template validateVersion(com, timestamp, version, apiVersion) =
raise unsupportedFork("newPayloadV4 expect payload timestamp fall within Prague")
if com.isPragueOrLater(timestamp):
if version != Version.V4:
if version != Version.V3:
raise invalidParams("if timestamp is Prague or later, " &
"payload must be ExecutionPayloadV4, got ExecutionPayload" & $version)
"payload must be ExecutionPayloadV3, got ExecutionPayload" & $version)
if apiVersion == Version.V3:
if not com.isCancunOrLater(timestamp):