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

Implement Filecoin.ChainSetHead endpoint #2706

Closed
3 tasks
elmattic opened this issue Mar 23, 2023 · 0 comments · Fixed by #2821
Closed
3 tasks

Implement Filecoin.ChainSetHead endpoint #2706

elmattic opened this issue Mar 23, 2023 · 0 comments · Fixed by #2821
Assignees
Labels
CLI Ready Issue is ready for work and anyone can freely assign it to themselves RPC

Comments

@elmattic
Copy link
Contributor

Issue summary

Sometimes it's very useful to be able to reset the HEAD manually. Lotus supports it.

One use case would be for exporting a snapshot with Forest across upgrades.

E.g.

forest-cli --chain calibnet chain set-head 322351
forest-cli --chain calibnet snapshot export -t 322054 -r 2000

Task summary

  • Add support for RPC-JSON Filecoin.ChainSetHead endpoint
  • Add cli support in chain subcommand

Acceptance Criteria

  • Setting HEAD to a previous epoch works and Forest can revalidate the chain section.

Other information and links

https://github.com/filecoin-project/lotus/blob/093ff9558000054e272fcb6457c54c9f8e0b8da1/api/api_full.go#L141

@elmattic elmattic added CLI RPC Ready Issue is ready for work and anyone can freely assign it to themselves labels Mar 23, 2023
@elmattic elmattic added this to the Forest 🌲 Infrastructure milestone Mar 23, 2023
@aatifsyed aatifsyed assigned aatifsyed and unassigned aatifsyed May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Ready Issue is ready for work and anyone can freely assign it to themselves RPC
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants