Skip to content

Commit

Permalink
chore: small tweaks to reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
warner committed Mar 2, 2022
1 parent 9bc17c7 commit 13aaf15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/SwingSet/src/kernel/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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

Expand Down

0 comments on commit 13aaf15

Please sign in to comment.