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

Durable vat-bank and virtual-purse #7617

Merged
merged 13 commits into from
May 8, 2023
Merged

Durable vat-bank and virtual-purse #7617

merged 13 commits into from
May 8, 2023

Conversation

michaelfig
Copy link
Member

@michaelfig michaelfig commented May 4, 2023

closes: #5885
refs: #7633

Description

This is the first version of the vat-bank durablization that passes existing tests, and that I assert is "reachably durable". I'd like to land these changes as a basis for upgrade testing and incremental improvements to vat-bank after the fact.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

This has not yet gone through a vat restart (null-upgrade) test. We should do that before declaring it "upgradable".

getAssetSubscription was manually tested to ensure that new clients indeed receive the full asset history. It also needs to be tested across restarts to ensure newly added assets interact well with the resume-on-upgrade feature of subscribeEach. The publicationCounts used by each incarnation are intended to be deterministic, and the historical data is durable.

@michaelfig michaelfig added the cosmic-swingset package: cosmic-swingset label May 4, 2023
@michaelfig michaelfig self-assigned this May 4, 2023
@michaelfig michaelfig force-pushed the mfig-upgradable-bank branch 3 times, most recently from d969dd8 to 9ab9dde Compare May 6, 2023 05:02
@michaelfig michaelfig marked this pull request as ready for review May 6, 2023 05:03
@michaelfig michaelfig changed the title Mfig upgradable bank Durable vat-bank and virtual-purse May 6, 2023
Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

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

human lint pass from my phone

.eslintrc.cjs Outdated Show resolved Hide resolved
packages/internal/src/callback.js Outdated Show resolved Hide resolved
packages/swingset-liveslots/src/virtualObjectManager.js Outdated Show resolved Hide resolved
packages/vats/src/vat-bank.js Outdated Show resolved Hide resolved
packages/vats/src/vat-bank.js Outdated Show resolved Hide resolved
packages/vats/src/vat-bank.js Outdated Show resolved Hide resolved
packages/vats/src/vat-bank.js Outdated Show resolved Hide resolved
packages/vats/src/virtual-purse.js Outdated Show resolved Hide resolved
packages/vats/test/setup-vat-data.js Show resolved Hide resolved
@michaelfig michaelfig added this pull request to the merge queue May 8, 2023
Merged via the queue into master with commit 628de13 May 8, 2023
@michaelfig michaelfig deleted the mfig-upgradable-bank branch May 8, 2023 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmic-swingset package: cosmic-swingset
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make vat-bank reachably durable
2 participants