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

fix: closes issue #1071 - fetch a poi from the latestBlock if it's behind chainhead #1085

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dwerner
Copy link
Contributor

@dwerner dwerner commented Feb 5, 2025

From the arbitration charter:

If a subgraph encounters an error that prevents it from being synced up to a the first block of the epoch, then an Indexer should submit the last valid PoI for the block before the error occured. Indexers may continue to collect indexing rewards on a broken subgraph until the market indicates it is no longer useful to index that subgraph and removes all signal from the subgraph.

This PR implements checking if the PoI exists at the last block that the subgraph is synced to when trying to unallocate, if we can't find a PoI in the 'first-block-of-current-epoch' and the subgraph synced lastBlock as reported by graph node is behind chainhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🗃️ Inbox
Development

Successfully merging this pull request may close these issues.

1 participant