Skip to content

Commit

Permalink
fixup! feat(x/swingset): export swing store in genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Aug 19, 2023
1 parent 4cc061e commit af1a396
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions golang/cosmos/x/swingset/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ func ExportGenesis(ctx sdk.Context, k Keeper, swingStoreExportsHandler *SwingSto
// The export will fail if the export of a historical height was requested
snapshotHeight,
swingStoreGenesisEventHandler{exportDir: swingStoreExportDir, snapshotHeight: snapshotHeight},
// TODO: replay is currently implemented as "archival" where any historical artifact available
// is included, which is not deterministic. While it will lead to divergent genesis files
// if some artifacts are missing, it's better than only the "operational" mode which will drop
// any historical artifact, preventing future manchurian style replays.
// See https://github.com/Agoric/agoric-sdk/issues/8105
// The export will fail if the swing-store does not contain all replay artifacts
keeper.SwingStoreExportOptions{
ArtifactMode: keeper.SwingStoreArtifactModeReplay,
ExportDataMode: keeper.SwingStoreExportDataModeSkip,
Expand Down

0 comments on commit af1a396

Please sign in to comment.