Skip to content

Commit

Permalink
chore(cosmic-swingset): Add new parameters to sim-params.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Nov 9, 2024
1 parent 0571652 commit e6ad881
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions packages/cosmic-swingset/src/sim-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,32 @@ export const defaultPowerFlagFees = [
];

export const QueueInbound = 'inbound';

export const defaultInboundQueueMax = 1_000;

export const defaultQueueMax = [
makeQueueSize(QueueInbound, defaultInboundQueueMax),
];

export const vatCleanupDefault = 'default';
export const defaultVatCleanupDefault = 0;
export const vatCleanupExports = 'exports';
export const defaultVatCleanupExports = 0;
export const vatCleanupImports = 'imports';
export const defaultVatCleanupImports = 0;
export const vatCleanupKv = 'kv';
export const defaultVatCleanupKv = 0;
export const vatCleanupSnapshots = 'snapshots';
export const defaultVatCleanupSnapshots = 0;
export const vatCleanupTranscripts = 'transcripts';
export const defaultVatCleanupTranscripts = 0;
export const defaultVatCleanupBudget = [
{ key: vatCleanupDefault, value: `${defaultVatCleanupDefault}` },
{ key: vatCleanupExports, value: `${defaultVatCleanupExports}` },
{ key: vatCleanupImports, value: `${defaultVatCleanupImports}` },
{ key: vatCleanupKv, value: `${defaultVatCleanupKv}` },
{ key: vatCleanupSnapshots, value: `${defaultVatCleanupSnapshots}` },
{ key: vatCleanupTranscripts, value: `${defaultVatCleanupTranscripts}` },
];

/**
* @type {import('@agoric/cosmic-proto/swingset/swingset.js').ParamsSDKType}
*/
Expand All @@ -85,4 +104,5 @@ export const DEFAULT_SIM_SWINGSET_PARAMS = {
bootstrap_vat_config: defaultBootstrapVatConfig,
power_flag_fees: defaultPowerFlagFees,
queue_max: defaultQueueMax,
vat_cleanup_budget: defaultVatCleanupBudget,
};

0 comments on commit e6ad881

Please sign in to comment.