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

feat: forest-tool snapshot compute-state #3430

Merged
merged 193 commits into from
Sep 8, 2023

Conversation

aatifsyed
Copy link
Contributor

@aatifsyed aatifsyed commented Aug 30, 2023

Rework of #3161

Changes

  • new subcommand
  • parsing and lotus-compatibile printing for ExecutionEvents, with the following bugs:
    • We don't have a "Duration" for each message
    • We don't serialize the "EventsRoot"
  • Add NetworkChain::from_genesis
  • Change signature of the popular CB: FnMut(...) -> anyhow::Result<()> to take a MessageCallbackCtx

Testing

Tested against forest_snapshot_calibnet_2023-06-20_height_664544.car - see below for obtaining reference from lotus.
Adding integration tests is tracked below

Follow-on work

@aatifsyed aatifsyed marked this pull request as ready for review September 5, 2023 11:57
@aatifsyed aatifsyed requested a review from a team as a code owner September 5, 2023 11:57
@aatifsyed aatifsyed requested review from ruseinov, jdjaustin and lemmih and removed request for a team September 5, 2023 11:57
Copy link
Contributor

@lemmih lemmih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally okay. Some FIXMEs and BUGs that I do not understand. And fvm3 structures should not be used directly. Guillaume opened an issue to avoid the fvm3 he used. You could do the same, but I think it would be easier just to use the shims.

src/tool/subcommands/snapshot_cmd.rs Outdated Show resolved Hide resolved
src/shim/gas.rs Outdated Show resolved Hide resolved
src/tool/subcommands/snapshot_cmd.rs Outdated Show resolved Hide resolved
@aatifsyed aatifsyed mentioned this pull request Sep 6, 2023
3 tasks
@aatifsyed aatifsyed changed the title feat: forest-tool compute state feat: forest-tool snapshot compute-state Sep 6, 2023
@aatifsyed aatifsyed added this pull request to the merge queue Sep 8, 2023
Merged via the queue into main with commit e0b5e87 Sep 8, 2023
23 checks passed
@aatifsyed aatifsyed deleted the aatifsyed/refactor-compute-state-cli branch September 8, 2023 10:11
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.

None yet

4 participants