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

Handle template create in subgraph watcher during reorgs #533

Merged
merged 5 commits into from
Oct 11, 2024

Conversation

nikugogoi
Copy link
Collaborator

@nikugogoi nikugogoi commented Aug 5, 2024

Part of Handle template create events processing during reorgs and Watcher ETH JSON-RPC wrapper

  • Remove existing watched contract when encountered during template create in subgraph watcher
    • Reprocess block without existing watched contract
    • Scenario arises during reorgs with block events resulting to subgraph template create
  • Apply GQL and RPC server middlewares ordered on requested paths
    • Apply the one with more path segments first to avoid it's requests getting directed to the other

@nikugogoi nikugogoi self-assigned this Aug 5, 2024
@prathamesh0 prathamesh0 changed the title [WIP] Handle template create in subgraph watcher during reorgs Handle template create in subgraph watcher during reorgs Oct 11, 2024
@nikugogoi nikugogoi merged commit 5d7b7fe into main Oct 11, 2024
2 checks passed
@nikugogoi nikugogoi deleted the ng-subgraph-template-reorg branch October 11, 2024 09:20
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