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

#190 - check if subgraph is in sync before take step #193

Merged
merged 18 commits into from
Oct 5, 2023

Conversation

trizin
Copy link
Contributor

@trizin trizin commented Oct 4, 2023

Fixes #190

Changes proposed in this PR:

  • Added is_block_number_synced function to subgraph module.
  • Added wait_till_subgraph_syncs function to subgraph module.
  • Updated Predictoor payout, trueval single, trueval batch, dfbuyer to wait till subgraph is in sync before take step.

@trizin trizin linked an issue Oct 4, 2023 that may be closed by this pull request
@trizin trizin marked this pull request as draft October 4, 2023 10:17
@trizin trizin marked this pull request as ready for review October 4, 2023 14:56
@trizin trizin changed the title #190 - check if subgraph is in before take step #190 - check if subgraph is in sync before take step Oct 4, 2023
@trizin trizin requested a review from trentmc October 4, 2023 16:11
Copy link
Member

@trentmc trentmc left a comment

Choose a reason for hiding this comment

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

Generally, great. I'll approve, but please make the following changes before merging:

  • rename "is_block_number_synced" --> "block_number_is_synced" (proper tense for software)
  • rename "wait_till_subgraph_syncs" -> "wait_until_subgraph_syncs" ("until" is more precise, less casual. )

@trizin trizin merged commit 51b2d48 into main Oct 5, 2023
5 checks passed
@trizin trizin deleted the issue190-check-if-subgraph-is-in-sync-regularly branch October 5, 2023 13:11
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.

Check if subgraph is in sync regularly
2 participants