Skip to content

Commit

Permalink
fixup! feat: Add consensus-independent vat transcript archiving confi…
Browse files Browse the repository at this point in the history
…guration to AG_COSMOS_INIT
  • Loading branch information
gibson042 committed Sep 11, 2024
1 parent ac99cd3 commit c5f7c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/SwingSet/src/kernel/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default function buildKernel(
console.log(`kernel terminating vat ${vatID} (failure=${shouldReject})`);
let critical = false;
insistCapData(info);
await null;
const deferred = [];
// ISSUE: terminate stuff in its own crank like creation?
// TODO: if a static vat terminates, panic the kernel?
// TODO: guard against somebody telling vatAdmin to kill a vat twice
Expand All @@ -288,7 +288,7 @@ export default function buildKernel(
// remove vatID from the list of live vats, and mark for deletion
kernelKeeper.deleteVatID(vatID);
kernelKeeper.markVatAsTerminated(vatID);
await kernelKeeper.removeVatFromSwingStoreExports(vatID);
deferred.push(kernelKeeper.removeVatFromSwingStoreExports(vatID));
for (const kpid of deadPromises) {
resolveToError(kpid, makeError('vat terminated'), vatID);
}
Expand Down

0 comments on commit c5f7c6c

Please sign in to comment.