graphprotocol / graphprotocol/graph-node

[Feature] Copy a subgraph at specific block height

Open
#6,085 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement indexer experience
Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

Description

Copying a subgraph at a specific block height would allow for an elegant alternative to rewinds when a divergence is identified in a subgraph.

Proposed workflow
1 - Identify divergence point N
2 - copy subgraph at block height N
3 - Allow graph-node to fully sync the copy
4 - Verify that the divervence is resolved
5 - use graphman copy activate to gracefully direct traffic to the corrected subgraph

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

No response

Some information to help us out
  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing graphman copy activate entry point and trace how subgraph copies are represented and synchronized. Define how a copy at block height N is created, fully synced, verified, and activated without relying on a rewind; done means the proposed workflow works end to end.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend, cli, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.