Skip to content

Commit

Permalink
chore: Add the "promises" slow vat cleanup phase
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Oct 28, 2024
1 parent f6d3cb4 commit 2e577ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions golang/cosmos/x/swingset/types/default-params.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const (
VatCleanupDefault = "default"
VatCleanupExports = "exports"
VatCleanupImports = "imports"
VatCleanupPromises = "promises"
VatCleanupKv = "kv"
VatCleanupSnapshots = "snapshots"
VatCleanupTranscripts = "transcripts"
Expand Down Expand Up @@ -78,13 +79,15 @@ var (
DefaultVatCleanupDefault = sdk.NewUint(5)
// DefaultVatCleanupExports = DefaultVatCleanupDefault
// DefaultVatCleanupImports = DefaultVatCleanupDefault
// DefaultVatCleanupPromises = DefaultVatCleanupDefault
DefaultVatCleanupKv = sdk.NewUint(50)
// DefaultVatCleanupSnapshots = DefaultVatCleanupDefault
// DefaultVatCleanupTranscripts = DefaultVatCleanupDefault
DefaultVatCleanupBudget = []UintMapEntry{
UintMapEntry{VatCleanupDefault, DefaultVatCleanupDefault},
// UintMapEntry{VatCleanupExports, DefaultVatCleanupExports},
// UintMapEntry{VatCleanupImports, DefaultVatCleanupImports},
// UintMapEntry{VatCleanupPromises, DefaultVatCleanupPromises},
UintMapEntry{VatCleanupKv, DefaultVatCleanupKv},
// UintMapEntry{VatCleanupSnapshots, DefaultVatCleanupSnapshots},
// UintMapEntry{VatCleanupTranscripts, DefaultVatCleanupTranscripts},
Expand Down
1 change: 1 addition & 0 deletions packages/cosmic-swingset/src/sim-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const VatCleanupPhase = /** @type {const} */ ({
Default: 'default',
Exports: 'exports',
Imports: 'imports',
Promises: 'promises',
Kv: 'kv',
Snapshots: 'snapshots',
Transcripts: 'transcripts',
Expand Down

0 comments on commit 2e577ee

Please sign in to comment.