Skip to content

Remove unused Engine API payload-body operations - #279

Merged
Bronek merged 1 commit into
mainfrom
bronek/remove_GetPayloadBodiesByHash
Sep 18, 2026
Merged

Bronek merged 1 commit into
mainfrom
bronek/remove_GetPayloadBodiesByHash

Conversation

@Bronek

@Bronek Bronek commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Remove GetPayloadBodiesByHash and GetPayloadBodiesByRange, their shared response EngineGetPayloadBodiesResp, RPC handlers, capability entries, and the response converter with its dedicated tests. Neither payload-bodies request has a production publisher.

The by-hash request reserves 128 inline hashes in every EngineReq slot. On x86-64, EngineReq shrinks from 4,120 to 976 bytes. A compiled layout probe confirms the new Flux slot is 1,024 bytes, down from 4,160. EngineResp remains 88 bytes with a 128-byte slot.

Rebuild and reattach spine observers with the node for the changed engine_reqs layout.

@Bronek
Bronek force-pushed the bronek/remove_GetPayloadBodiesByHash branch from 47d9cfe to 5984195 Compare September 17, 2026 16:52
@Bronek
Bronek marked this pull request as ready for review September 17, 2026 16:52
@vladimir-ea

Copy link
Copy Markdown
Collaborator

this is a good change (to remove the unused apis) but this PR includes Ninas commit for validator lookups for some reason. If you can rebase onto main?

Neither payload-bodies request has a production publisher. Remove ByHash
and ByRange, their shared response, RPC handlers, capability entries, and
the response converter with its dedicated tests.

The by-hash request reserves 128 inline hashes in every EngineReq slot.
On x86-64, EngineReq shrinks from 4,120 to 976 bytes. A compiled layout
probe confirms the new Flux slot is 1,024 bytes, down from 4,160.
EngineResp remains 88 bytes with a 128-byte slot.

Rebuild and reattach spine observers with the node for the changed
engine_reqs layout.

Validation: just fmt, just clippy with all features, and just test
(1,583 passed, 6 ignored). Socket tests required execution outside the
sandbox. Independent review found no issues.

Assisted-by: Codex:GPT-6
@Bronek
Bronek force-pushed the bronek/remove_GetPayloadBodiesByHash branch from 5984195 to bfbced9 Compare September 18, 2026 10:41
@Bronek

Bronek commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator Author

this is a good change (to remove the unused apis) but this PR includes Ninas commit for validator lookups for some reason. If you can rebase onto main?

Thanks, rebased.

@Bronek
Bronek merged commit c4481d5 into main Sep 18, 2026
3 checks passed
@Bronek
Bronek deleted the bronek/remove_GetPayloadBodiesByHash branch September 18, 2026 11:33
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