Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Update state_writer_snapshot to maintain multiple snapshot #21

Closed
shuse2 opened this issue Jul 14, 2022 · 0 comments · Fixed by #22
Closed

Update state_writer_snapshot to maintain multiple snapshot #21

shuse2 opened this issue Jul 14, 2022 · 0 comments · Fixed by #22
Assignees
Milestone

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Jul 14, 2022

Description

state_writer_snapshot needs to be able to hold multiple snapshot and revert to a particular one

interface should be

const snapshotIDFirst = createSnapshot();
const snapshotIDSecond = createSnapshot();

revertSnapshot(snapshotIDFirst);
  • Also, once revert is called, all snapshot can be discarded

Motivation

When executing a state change, it is required to revert more than 1 layer

Acceptance Criteria

  • Add test on nodejs to verify above scenario is possible
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants