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

Use Simulated Backend to Test Sync [ Tracking Issue ] #1593

Closed
5 tasks done
nisdas opened this issue Feb 14, 2019 · 0 comments
Closed
5 tasks done

Use Simulated Backend to Test Sync [ Tracking Issue ] #1593

nisdas opened this issue Feb 14, 2019 · 0 comments
Labels
Priority: High High priority item
Milestone

Comments

@nisdas
Copy link
Member

nisdas commented Feb 14, 2019

With #1445 being merged in , we can use the simulated backend to generate blocks and advance the chain. What this means for testing sync is that now we can test how nodes will interact with each other under certain scenarios. Ex: Node A is synced to the current slot of 100 , with sync B we should be able to test if this also sync to the current slot of 100 with the same state root. We can test other scenarios also with multiple nodes.

A high level overview is provided over here https://docs.google.com/document/d/18rZxhdLmM3zfC5RtHHkxuyWd2qDL6h_B6VuSnaVSBVs/edit?usp=sharing

This issue serves as a tracking issue for this.

  • Add ability to spin up sync services, with a simulated p2p for exchanging messages between
    services.
  • Test a node syncing with multiple synced nodes
  • Test multiple nodes syncing with a single synced node.
  • Test node syncing from a far away behind slot
    - [ ] Test syncing with malicious actors, ex : Batched blocks contain a single invalid block.
  • Test Syncing from the last finalized slot , for the beacon state.

This is also related to #1586

@nisdas nisdas added the Priority: High High priority item label Feb 14, 2019
@nisdas nisdas added this to the Sapphire milestone Feb 14, 2019
This was referenced Feb 21, 2019
@nisdas nisdas closed this as completed Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item
Projects
None yet
Development

No branches or pull requests

1 participant