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: support DumpCache, handle Logs in traces #512

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jan 11, 2025

Ref: filecoin-project/ref-fvm#2101

This is a draft, but the ExecutionEvent::Log could probably be done separately since that's much more likely to actually make it in. I'll do that if I end up bailing on this.

rvagg added a commit to filecoin-project/lotus that referenced this pull request Jan 11, 2025
* Plumb through dump_cache from fvm4 to access intermediate blocks:
  - filecoin-project/filecoin-ffi#512
  - filecoin-project/ref-fvm#2101
* Enable cache dumping in StateReplay with LOTUS_REPLAY_DUMP_CACHED_BLOCKS
* Add optional "Blocks" field InvocResult
* Handle ExecutionEvent::Log's and add "Logs" field to ExecutionTrace
* Dump intermediate cache blocks to CAR in /tmp when they appear while using
  `lotus-shed msg --exec-trace`.
@rvagg rvagg force-pushed the rvagg/dump-cache branch from e08bbe8 to 01b4772 Compare March 28, 2025 08:29
@rvagg rvagg force-pushed the rvagg/dump-cache branch from 01b4772 to 285faf5 Compare March 28, 2025 08:30
rvagg added a commit to filecoin-project/lotus that referenced this pull request Mar 28, 2025
* Plumb through dump_cache from fvm4 to access intermediate blocks:
  - filecoin-project/filecoin-ffi#512
  - filecoin-project/ref-fvm#2101
* Enable cache dumping in StateReplay with LOTUS_REPLAY_DUMP_CACHED_BLOCKS
* Add optional "Blocks" field InvocResult
* Handle ExecutionEvent::Log's and add "Logs" field to ExecutionTrace
* Dump intermediate cache blocks to CAR in /tmp when they appear while using
  `lotus-shed msg --exec-trace`.
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.

1 participant