Skip to content

Retry submit_block on encoding failure #449

@JasonVranek

Description

@JasonVranek

Goal

If a relay returns a well-formed HTTP response whose body we can't decode, re-request with Accept: application/json once before giving up.

Scope

  • mev_boost/submit_block.rs: retry on v1 decode failure (JSON parse error, SSZ parse error, missing Content-Type, missing Eth-Consensus-Version on declared SSZ response).
  • mev_boost/get_header.rs: mirror for symmetry. Currently errors if the relay declares SSZ Content-Type but omits Eth-Consensus-Version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions