Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use metered=true on all dynamic vats, xs-worker on all swingset tests #3519

Merged
merged 6 commits into from
Jul 24, 2021

Conversation

warner
Copy link
Member

@warner warner commented Jul 24, 2021

Swingset will soon change from "all dynamic vats are metered" to "dynamic vats are unmetered by default", so set "metered: true" to retain the current behavior for ZCF vats.

In addition, metering is going to be removed from the "local" (Node.js) vat-worker, so "metered: true" will require "xs-worker" (xsnap) instead. This changes the tests/swingsetTests runners to use xs-worker.

Note that this upcoming change means any application which uses Zoe to spawn ZCF vats must run with config.defaultManagerType='xs-worker', otherwise vat creation will fail when Zoe asks for a metered vat. Our two primary applications (the chain and the solo machine) both do this already.

refs #3518
refs #3308

Swingset will soon change from "all dynamic vats are metered" to "dynamic
vats are unmetered by default", so set "metered: true" to retain the current
behavior for ZCF vats.

In addition, metering is going to be removed from the "local" (Node.js)
vat-worker, so "metered: true" will require "xs-worker" (xsnap) instead. This
changes the `tests/swingsetTests` runners to use xs-worker.

Note that this upcoming change means any application which uses Zoe to spawn
ZCF vats must run with `config.defaultManagerType='xs-worker'`, otherwise vat
creation will fail when Zoe asks for a metered vat. Our two primary
applications (the chain and the solo machine) both do this already.

refs #3518
refs #3308
since this will no longer be the default soon
@warner warner added SwingSet package: SwingSet ERTP package: ERTP Zoe package: Zoe metering charging for execution (was: package: tame-metering and transform-metering) spawner Spawner and contractHost Zoe Contract Contracts within Zoe Inter-protocol Overarching Inter Protocol Governance Governance labels Jul 24, 2021
@warner warner added this to the Testnet: Metering Phase milestone Jul 24, 2021
@warner warner requested a review from katelynsills July 24, 2021 18:29
@warner warner self-assigned this Jul 24, 2021
Copy link
Contributor

@katelynsills katelynsills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@warner warner enabled auto-merge July 24, 2021 19:07
@warner warner merged commit 50c7f28 into master Jul 24, 2021
@warner warner deleted the 3518-meter-default-xs-worker branch July 24, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ERTP package: ERTP Governance Governance Inter-protocol Overarching Inter Protocol metering charging for execution (was: package: tame-metering and transform-metering) spawner Spawner and contractHost SwingSet package: SwingSet Zoe Contract Contracts within Zoe Zoe package: Zoe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants