Skip to content

fix(dips): build the POI reference from the deployment chain - #1253

Open
MoonBoi9001 wants to merge 2 commits into
main-dipsfrom
mb9/fix-collections-using-wrong-chains-block-height
Open

fix(dips): build the POI reference from the deployment chain#1253
MoonBoi9001 wants to merge 2 commits into
main-dipsfrom
mb9/fix-collections-using-wrong-chains-block-height

Conversation

@MoonBoi9001

@MoonBoi9001 MoonBoi9001 commented Aug 7, 2026

Copy link
Copy Markdown
Member

This PR makes DIPs collections reference a block of the chain the subgraph actually indexes, taking the deployment's indexed head from graph-node instead of the protocol chain's RPC height.

The collection path previously paired the protocol chain's block number with the deployment's network when asking graph-node for the block hash, so any agreement whose deployment indexes a different chain requested a block that chain has never produced, and the lookup failed on every retry, forever. Introduced with the collection implementation in #1185.

Observed on The Graph's testnet on 2026-08-07: 2 agreements on mainnet-indexing deployments had never collected since acceptance, the agent asking for mainnet block 295,717,516 (an Arbitrum Sepolia height) while mainnet's head was 25,703,982. On the production protocol chain the same defect would affect every agreement for a non-Arbitrum-One deployment. Using the indexed head also guarantees graph-node can answer the POI query, since that block is one the subgraph has indexed. A new test pins the cross-chain case, which no existing test covered.

Collections took a recent block number from the protocol chain and looked up its hash on the
deployment's own network, so an agreement indexing any other chain asked for a block that
chain never produced and could never collect. The POI now uses the deployment's indexed head.
@github-project-automation github-project-automation Bot moved this to 🗃️ Inbox in Indexer Aug 7, 2026
@MoonBoi9001
MoonBoi9001 requested a review from Maikol August 7, 2026 17:30
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