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

Support fast-sync algorithm. #13

Closed
wants to merge 5 commits into from

Conversation

shamil-gadelshin
Copy link
Member

This PR adds support for the upcoming fast-sync algorithm from subspace-node (WIP).

Changes:

  • add a method for "raw-import" block which bypasses the majority of checks and execution
  • add fast-sync-engine - a simplified version of the sync-engine which enables access to existing state-sync strategy
  • add operations for removing the block gap metadata that Substrate calculates when we insert not the sequential block
  • change Substrate constants to support our scenario
  • expose currently connected peers (open peers)
  • add NewBestBlockNumber event to update common block number with connected peers.

Changed constants like BLOCKS_AHEAD must be set to correct values (WIP).

The 'Logs' commit contains only temporary logs and must be removed before the merge.

@shamil-gadelshin
Copy link
Member Author

Superseded by #15

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.

1 participant