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

Execution tracing for past blocks #2491

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

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented Dec 11, 2024

Requires VM PR FuelLabs/fuel-vm#881.

Description

Implements execution tracing for blocks/transactions that are already part of the chain state,and exposes this functionality through GraphQL. Also upgrades fuel-vm to not-yet-released 0.60.0.

Example query:

mutation {
  traceTx(
    txId: "1df52a41b46fcf1de387928ad1f2adf703d270ea9d4ad3e6c9fddd7f459a7a52",
    trigger: ON_RECEIPT
  ) {
    id, receipts {
      pc, reason, receiptType
    }, status {
      __typename
      ... on TraceSuccessStatus { executionTrace { receiptCount, registers, memoryDiff { start, bytes } } }
    }
  }
}

Heavily work-in-progress, needs:

  • Decision on do we have this for whole blocks only, or single txs, or something more complicated
  • Decision on WASM executor support
  • Tests
  • Docs

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog: No breaking changes!
  • New behavior is reflected in tests
  • The specification matches the implemented behavior: This is outside spec scope.

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

After merging, notify other teams

See the VM PR FuelLabs/fuel-vm#881.

@Dentosal Dentosal added enhancement New feature or request fuel-block-executor wasm WASM-based block execution labels Dec 11, 2024
@Dentosal Dentosal self-assigned this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fuel-block-executor wasm WASM-based block execution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant