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(parachain/availability-store): Confirm fork-awareness works in availability store subsystem #3896

Merged
merged 107 commits into from
May 13, 2024

Conversation

edwardmack
Copy link
Member

Changes

Adds tests to confirm fork-awareness works for availability store subsystem by testing the following:

  • Block B1 is added to the store.
  • Block B2 is added to the store.
  • Notify the subsystem that both B1 and B2 were included in different leafs of relay chain.
  • Notify the subsystem that the leaf with B1 was finalized.
  • Leaf with B2 is never finalized.
  • Leaf with B2 is pruned and its data is no longer available.
  • Wait until the finalized data of B1 should have been pruned.
  • B1 is no longer available.

Tests

go test github.com/ChainSafe/gossamer/dot/parachain/availability-store -run ^TestForkfullnessWorks$ -v

Issues

closes #3854

Primary Reviewer

@kishansagathiya

@edwardmack edwardmack changed the base branch from feat/parachain to ed/availabilityStoreOverseerSignals April 17, 2024 17:09
@edwardmack edwardmack marked this pull request as draft April 17, 2024 17:09
@edwardmack edwardmack force-pushed the ed/availabilityStoreForkAwarenessTest branch from 4d929d7 to e94ffbc Compare April 17, 2024 18:40
@edwardmack edwardmack marked this pull request as ready for review April 17, 2024 19:32
@edwardmack edwardmack force-pushed the ed/availabilityStoreOverseerSignals branch from a98ff21 to bf425ed Compare April 24, 2024 22:08
@edwardmack edwardmack force-pushed the ed/availabilityStoreForkAwarenessTest branch from e94ffbc to 5205a3f Compare April 25, 2024 21:36
axaysagathiya and others added 15 commits April 30, 2024 16:23
#3277)

- Added parachain service
- Registered collation and validation protocol
- Confirmed that we can communicate with collators by talking to them in `run()` function
…ge (#3600)

- implements logic in the Candidate Backing Subsystem to handle canSecond message.
- The subsystem checks if it's allowed to second a candidate based on specific rules:
    - collations must be built on the root of a fragment tree or have a parent node representing a backed candidate.
    - If async backing is disabled for the candidate's relay parent, the response is always false.
@edwardmack edwardmack force-pushed the ed/availabilityStoreForkAwarenessTest branch from 5205a3f to 0071b1d Compare April 30, 2024 20:47
Copy link
Contributor

@jimjbrettj jimjbrettj 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
Contributor

@kishansagathiya kishansagathiya left a comment

Choose a reason for hiding this comment

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

Had a call with Ed, he walked me through the code to review it.
LGTM
Will approve, after base branch is merged.

Base automatically changed from ed/availabilityStoreOverseerSignals to feat/parachain May 13, 2024 19:51
@edwardmack edwardmack merged commit b898d7f into feat/parachain May 13, 2024
21 checks passed
@edwardmack edwardmack deleted the ed/availabilityStoreForkAwarenessTest branch May 13, 2024 23:54
timwu20 pushed a commit that referenced this pull request Jun 17, 2024
…vailability store subsystem (#3896)

Co-authored-by: Axay Sagathiya <axaysagathiya@gmail.com>
Co-authored-by: Kishan Sagathiya <kishansagathiya@gmail.com>
timwu20 pushed a commit that referenced this pull request Jun 17, 2024
…vailability store subsystem (#3896)

Co-authored-by: Axay Sagathiya <axaysagathiya@gmail.com>
Co-authored-by: Kishan Sagathiya <kishansagathiya@gmail.com>
timwu20 pushed a commit that referenced this pull request Jun 20, 2024
…vailability store subsystem (#3896)

Co-authored-by: Axay Sagathiya <axaysagathiya@gmail.com>
Co-authored-by: Kishan Sagathiya <kishansagathiya@gmail.com>
kishansagathiya added a commit that referenced this pull request Jul 15, 2024
…vailability store subsystem (#3896)

Co-authored-by: Axay Sagathiya <axaysagathiya@gmail.com>
Co-authored-by: Kishan Sagathiya <kishansagathiya@gmail.com>
kishansagathiya added a commit that referenced this pull request Jul 15, 2024
…vailability store subsystem (#3896)

Co-authored-by: Axay Sagathiya <axaysagathiya@gmail.com>
Co-authored-by: Kishan Sagathiya <kishansagathiya@gmail.com>
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.

4 participants