Skip to content

Conversation

pawanjay176
Copy link
Member

Issue Addressed

Resolves #3351

Proposed Changes

Returns a ResourceUnavailable rpc error if we are unable to serve full payloads to blocks by root and range requests because the execution layer is not synced.

Additional Info

This PR also changes the penalties such that a ResourceUnavailable error is only penalized if it is an outgoing request. If we are syncing and aren't getting full block responses, then we don't have use for the peer. However, this might not be true for the incoming request case. We let the peer decide in this case if we are still useful or if we should be banned.
cc @divagant-martian please let me know if i'm missing something here.

@pawanjay176 pawanjay176 added the ready-for-review The code is ready for review label Jul 22, 2022
@paulhauner paulhauner added bellatrix Required to support the Bellatrix Upgrade v2.5.0 Required for Goerli merge release labels Jul 23, 2022
Copy link
Contributor

@divagant-martian divagant-martian left a comment

Choose a reason for hiding this comment

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

lgtm :)

Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jul 27, 2022
@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Jul 27, 2022
…payloads (#3365)

## Issue Addressed

Resolves #3351 

## Proposed Changes

Returns a `ResourceUnavailable` rpc error if we are unable to serve full payloads to blocks by root and range requests because the execution layer is not synced.


## Additional Info

This PR also changes the penalties such that a `ResourceUnavailable` error is only penalized if it is an outgoing request. If we are syncing and aren't getting full block responses, then we don't have use for the peer. However, this might not be true for the incoming request case. We let the peer decide in this case if we are still useful or if we should be banned.
cc @divagant-martian please let me know if i'm missing something here.
@bors bors bot changed the title Return ResourceUnavailable if we are unable to reconstruct execution payloads [Merged by Bors] - Return ResourceUnavailable if we are unable to reconstruct execution payloads Jul 27, 2022
@bors bors bot closed this Jul 27, 2022
@pawanjay176 pawanjay176 deleted the el-not-synced branch July 27, 2022 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bellatrix Required to support the Bellatrix Upgrade ready-for-merge This PR is ready to merge. v2.5.0 Required for Goerli merge release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants