Skip to content

fix: deserialize engine_getPayloadV4 response#1475

Draft
IvanBelyakoff wants to merge 1 commit into
ReamLabs:masterfrom
IvanBelyakoff:fix/getpayloadv4-deserialization
Draft

fix: deserialize engine_getPayloadV4 response#1475
IvanBelyakoff wants to merge 1 commit into
ReamLabs:masterfrom
IvanBelyakoff:fix/getpayloadv4-deserialization

Conversation

@IvanBelyakoff

Copy link
Copy Markdown

PayloadV4 fails to deserialize a spec-compliant engine_getPayloadV4 response from a real EL:

  • block_value is the EL blockValue QUANTITY (e.g. "0x0"), not a 32-byte hash. Typed B256 it never deserializes; changed to U256 with serde_utils::u256_hex_be.
  • the field should_overide_builder is misspelled, so its derived camelCase name (shouldOverideBuilder) does not match the EL's shouldOverrideBuilder. Added #[serde(rename)].

Updates the one beacon-side reader accordingly. Marked draft.

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.

1 participant