Skip to content

rpc: fix three testing_buildBlockV1 hive test failures#20698

Merged
canepat merged 1 commit intomainfrom
lupin012/fix_testing_according_PR_783_execution_apis
Apr 20, 2026
Merged

rpc: fix three testing_buildBlockV1 hive test failures#20698
canepat merged 1 commit intomainfrom
lupin012/fix_testing_according_PR_783_execution_apis

Conversation

@lupin012
Copy link
Copy Markdown
Contributor

This PR fixes 3 testing_ api after merge(today) of PR 783 execution_apis:

  • engine_types/jsonrpc.go: add omitempty to SlotNumber JSON tag so nil slot number is omitted from ExecutionPayloadV3 responses (Prague chain does not include slotNumber, only Amsterdam/V4+)
  • testing_api.go: return real blockValue from assembler instead of hardcoding zero;
  • nonce validation errors now use -32000 (execution error) instead of -32602 (invalid params) to match execution-apis spec

- engine_types/jsonrpc.go: add omitempty to SlotNumber JSON tag so
  nil slot number is omitted from ExecutionPayloadV3 responses (Prague
  chain does not include slotNumber, only Amsterdam/V4+)

- testing_api.go: return real blockValue from assembler instead of
  hardcoding zero; nonce validation errors now use -32000 (execution
  error) instead of -32602 (invalid params) to match execution-apis spec

- testing_api_test.go: update assertions accordingly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lupin012 lupin012 changed the title rpc:_ fix three testing_buildBlockV1 hive test failures rpc: fix three testing_buildBlockV1 hive test failures Apr 20, 2026
@lupin012 lupin012 marked this pull request as ready for review April 20, 2026 20:45
@canepat canepat enabled auto-merge April 20, 2026 20:49
@canepat canepat added this pull request to the merge queue Apr 20, 2026
Merged via the queue into main with commit 468a594 Apr 20, 2026
40 of 65 checks passed
@canepat canepat deleted the lupin012/fix_testing_according_PR_783_execution_apis branch April 20, 2026 22:24
AskAlexSharov pushed a commit that referenced this pull request Apr 24, 2026
This PR fixes 3 testing_ api after merge(today) of PR 783
execution_apis:

- engine_types/jsonrpc.go: add omitempty to SlotNumber JSON tag so nil
slot number is omitted from ExecutionPayloadV3 responses (Prague chain
does not include slotNumber, only Amsterdam/V4+)
- testing_api.go: return real blockValue from assembler instead of
hardcoding zero;
- nonce validation errors now use -32000 (execution error) instead of
-32602 (invalid params) to match execution-apis spec

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
AskAlexSharov pushed a commit that referenced this pull request Apr 24, 2026
This PR fixes 3 testing_ api after merge(today) of PR 783
execution_apis:

- engine_types/jsonrpc.go: add omitempty to SlotNumber JSON tag so nil
slot number is omitted from ExecutionPayloadV3 responses (Prague chain
does not include slotNumber, only Amsterdam/V4+)
- testing_api.go: return real blockValue from assembler instead of
hardcoding zero;
- nonce validation errors now use -32000 (execution error) instead of
-32602 (invalid params) to match execution-apis spec

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants