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

simulators/portal/beacon: Beacon Portal Network Test List #1132

Open
27 tasks
ogenev opened this issue Jun 28, 2024 · 0 comments
Open
27 tasks

simulators/portal/beacon: Beacon Portal Network Test List #1132

ogenev opened this issue Jun 28, 2024 · 0 comments
Labels
Portal Issues related to Portal Network hive tests

Comments

@ogenev
Copy link
Member

ogenev commented Jun 28, 2024

This is a tracking issue of all of the beacon portal network hive test that we would like to get implemented.

1. Test light client sync

Provide valid bootstrap, few light client updates, optimistic and finality updates in order to allow syncing

  • Test that the latest optimistic and finalized beacon state roots match the expected

2. Test LightClientBootstrap interop and validations

  • Reject bootstraps if not in sync

Tests that require lc sync:

  • Reject bootstraps older than 4 months
  • Reject bootstraps with invalid fork digest
  • Reject invalid LightClientHeader
  • Reject invalid current_sync_committee object
  • Reject non-canonical BeaconBlockHeader
  • Accept a valid LightClientBootstrap

3. Test LightClientUpdatesByRange interop and validations

  • Reject updates if not in sync

Tests that require lc sync:

  • Reject content if content key count field doesn't match the light client updates count in the content value
  • Reject invalid attested_header
  • Reject invalid next_sync_committee
  • Reject invalid finalized_header
  • Reject non-canonical attested_header
  • Reject non-canonical finalized_header
  • Reject updates with invalid fork digest
  • Accept a valid LightClientUpdate

4. Test HistoricalSummariesWithProof interop and validations

  • Reject content if not in sync

Tests that require lc sync:

  • Reject HistoricalSummariesWithProof with invalid fork digest
  • Reject HistoricalSummariesWithProof with invalid proof
  • Accept HistoricalSummariesWithProof with a valid proof

5. Test LightClientFinalityUpdate interop and validations

  • Reject content if the key's finalized slot doesn't match the LightClientFinalityUpdate finalized slot
  • Reject update with invalid fork digest
  • Accept a valid LightClientFinalityUpdate

6. Test LightClientOptimisticUpdate interop and validations

  • Reject content if the key's signature slot doesn't match the LightClientOptimisticUpdate signature slot
  • Reject update with invalid fork digest
  • Accept a valid LightClientOptimisticUpdate
@KolbyML KolbyML added the Portal Issues related to Portal Network hive tests label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portal Issues related to Portal Network hive tests
Projects
None yet
Development

No branches or pull requests

2 participants