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

Use PocketIC in snsdemo #429

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

Use PocketIC in snsdemo #429

wants to merge 4 commits into from

Conversation

dskloetd
Copy link
Collaborator

@dskloetd dskloetd commented Nov 25, 2024

Motivation

Using PocketIC will eventually be the default, and then the only option, with dfx start.
But using it sooner will help with being able to control SNS canisters and making them run out of cycles in the test environment.

Changes

  1. Pass --pocketic when starting dfx to create a snapshot.
  2. Using --pocketic when starting dfx to run a snapshot.
  3. Stop waiting for a checkpoint. PocketIC will write a checkpoint when it's being stopped. And waiting for one earlier will just time out.
  4. Use the newest versions of the dfx extensions. nns is needed for PocketIC and sns just to keep the same version.
  5. Use 0.24.3-beta.0 because older version don't support reusing the state after restarting dfx.

Tests

Tested manually starting the snsdemo snapshot from nns-dapp on Mac and Linux.

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