Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add jsonrpc endpoint for offer with trace #1394

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

njgheorghita
Copy link
Collaborator

@njgheorghita njgheorghita commented Aug 21, 2024

What was wrong?

The simple Offer jsonrpc endpoint doesn't return the result of the content transmission, just the initial Accept message. In the updated bridge, waiting for the actual result of this utp transmission is very useful.

How was it fixed?

Exposed jsonrpc access to PopulatedRequestWithResult request type.

To-Do

enr: Enr,
content_key: BeaconContentKey,
content_value: BeaconContentValue,
) -> RpcResult<bool>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible that in the future it might be useful to know whether or not the false case is because the Accept was declined or the utp transfer failed, but for the time being a simple bool is already useful in the new bridge, and we can update the response type later if a more granular response is warranted.

@njgheorghita njgheorghita marked this pull request as ready for review August 21, 2024 17:41
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@njgheorghita njgheorghita merged commit 3fc0ed8 into ethereum:master Aug 23, 2024
8 checks passed
@njgheorghita njgheorghita deleted the trace-offer branch August 23, 2024 16:48
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