From 13aaf15d5a6e6a369d5177225f832bee4429343f Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 2 Mar 2022 12:08:38 -0800 Subject: [PATCH] chore: small tweaks to reduce diff --- packages/SwingSet/src/kernel/kernel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/SwingSet/src/kernel/kernel.js b/packages/SwingSet/src/kernel/kernel.js index eee48a143730..a8614343c0e0 100644 --- a/packages/SwingSet/src/kernel/kernel.js +++ b/packages/SwingSet/src/kernel/kernel.js @@ -837,6 +837,10 @@ export default function buildKernel( // status will be set if we made a delivery, else undefined if (status) { const decrementReapCount = message.type !== 'bringOutYourDead'; + // the caller needs to be told the vatID that received the delivery, + // but eventually they'll tell us, and 'vatID' should be removed from + // DeliveryStatus + assert(vatID, 'DeliveryStatus.vatID missing'); status = { vatID, useMeter, decrementReapCount, ...status }; } return status; @@ -845,13 +849,13 @@ export default function buildKernel( async function processDeliveryMessage(message) { kdebug(`processQ ${JSON.stringify(message)}`); kdebug(legibilizeMessage(message)); + kernelSlog.write({ type: 'crank-start', message }); /** @type { PolicyInput } */ let policyInput = ['none']; if (message.type === 'create-vat') { policyInput = ['create-vat', {}]; } - kernelSlog.write({ type: 'crank-start', message }); // terminationTrigger can be set by syscall.exit or a vat-fatal syscall terminationTrigger = null; // reset terminationTrigger before delivery