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

add sql indexer behavior tests, remove restriction for normal sync #1077

Conversation

nbaztec
Copy link
Contributor

@nbaztec nbaztec commented Jun 13, 2023

What

This PR:

  • Adds additional tests to verify the indexer behavior for different sync strategies, best/non-best blocks, during/after initial network sync.
  • Removes the restriction for SyncStrategy::Normal - after review it was found that the existing behavior suffices for both SyncStrategy::Parachain and SyncStrategy::Normal.

It was decided not to index non-canonical blocks for now, since a valid use case was hard to find. If such a use-case arises in future, then the code allows the non-best blocks to be indexed as well with minimal changes, and can be addressed at that stage.

It was additionally considered that indexing non-canon blocks will negatively impact the index size of best-block tables for no immediate known advantage. Additionally keeping non-best block data in separate tables incurs development effort that is hard to justify as of now.

/cc @tgmichel

@nbaztec nbaztec requested a review from sorpaas as a code owner June 13, 2023 10:22
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.

2 participants