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

Allow custody by root requests to have no peers #6417

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

dapplion
Copy link
Collaborator

Issue Addressed

Currently, a post-PeerDAS lookup will immediately fail if we have no custody peers on a necessary column. This should be a common scenario if the peer manager can't find a well-distributed set of peers to cover all columns. Instantly failing the lookup is sub-optimal as the block will be added to fail chains and delays recovery.

Proposed Changes

This PR allows lookups so sit in a "stalled" state where one or more individual column requests are sitting idle unable to progress. But:

  • When added a new peer to sync, attempt to make progress on all lookups. If the new peer is a custodial of the missing column -> great we progress
  • After a certain duration if the lookup has not made progress, it will fail.

@dapplion dapplion added ready-for-review The code is ready for review syncing das Data Availability Sampling labels Sep 19, 2024
Copy link
Member

@realbigsean realbigsean left a comment

Choose a reason for hiding this comment

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

Nice, makes sense to me

@realbigsean
Copy link
Member

@mergify queue

Copy link

mergify bot commented Sep 23, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 012e7e7

mergify bot added a commit that referenced this pull request Sep 23, 2024
@mergify mergify bot merged commit 012e7e7 into sigp:unstable Sep 23, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
das Data Availability Sampling ready-for-review The code is ready for review syncing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants