From c5f7c6c46acb3c045f21e3a054359941a6c9b703 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Wed, 11 Sep 2024 01:11:00 -0400 Subject: [PATCH] fixup! feat: Add consensus-independent vat transcript archiving configuration to AG_COSMOS_INIT --- packages/SwingSet/src/kernel/kernel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SwingSet/src/kernel/kernel.js b/packages/SwingSet/src/kernel/kernel.js index f0d89b707b33..14471c1319b3 100644 --- a/packages/SwingSet/src/kernel/kernel.js +++ b/packages/SwingSet/src/kernel/kernel.js @@ -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 @@ -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); }