Skip to content

Commit

Permalink
fix(solo): change default vatManager to 'xs-worker'
Browse files Browse the repository at this point in the history
This changes the solo node to use xs-worker (xsnap) vats instead of local
ones, which has a secondary effect of silencing a warning from the spawner as
it attempts to create a metered vat without the Node.js globals having been
wrapped for metering.

refs #3393
  • Loading branch information
warner committed Jun 22, 2021
1 parent 3317007 commit eebaa2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/solo/src/init-basedir.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function initBasedir(
const { env = process.environment } = opts;
const {
wallet = DEFAULT_WALLET,
defaultManagerType = env.SWINGSET_WORKER_TYPE || 'local',
defaultManagerType = env.SWINGSET_WORKER_TYPE || 'xs-worker',
...options
} = opts;
options.wallet = wallet;
Expand Down
2 changes: 1 addition & 1 deletion packages/solo/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ start
webport: '8000',
webhost: '127.0.0.1',
egresses: DEFAULT_EGRESSES,
defaultManagerType: process.env.SWINGSET_WORKER_TYPE || 'local',
defaultManagerType: process.env.SWINGSET_WORKER_TYPE || 'xs-worker',
},
});
const webport = Number(subOpts.webport);
Expand Down

0 comments on commit eebaa2d

Please sign in to comment.