Skip to content

Snapshotting #101

Open
Open
@matiasinsaurralde

Description

Hi, would you be able to explain the snapshotting flow?

From what I've seen it should be used as follows:

  • A new VM is initialized, with a given WASM module.
  • You take a snapshot with snapshot := vm.ReadSnapshot().
  • You start another VM and use newVm.WriteSnapshot(snapshot)
  • The new VM should contain the same state, e.g. be able to find functions with GetFunctionExport, etc.

Main question is, how do I start a new VM without specifying a raw WASM module (seems that exec.NewVirtualMachine always expects this)

Best.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions