From 31e8abf84969b886d152c82ba315fb64c04672fa Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 2 Jul 2024 16:04:56 -0700 Subject: [PATCH] fix(cosmic-swingset): call upgradeSwingset at startup Any changes will be committed as part of the first block after reboot. This should be in-consensus, because all nodes are supposed to change kernel versions at the same time, and only during a chain-halting upgrade. --- packages/cosmic-swingset/src/launch-chain.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cosmic-swingset/src/launch-chain.js b/packages/cosmic-swingset/src/launch-chain.js index 25ae404c880a..8c1353e4d162 100644 --- a/packages/cosmic-swingset/src/launch-chain.js +++ b/packages/cosmic-swingset/src/launch-chain.js @@ -21,6 +21,7 @@ import { makeSwingsetController, loadBasedir, loadSwingsetConfigFile, + upgradeSwingset, } from '@agoric/swingset-vat'; import { waitUntilQuiescent } from '@agoric/internal/src/lib-nodejs/waitUntilQuiescent.js'; import { openSwingStore } from '@agoric/swing-store'; @@ -214,6 +215,7 @@ export async function buildSwingset( } const coreProposals = await ensureSwingsetInitialized(); + upgradeSwingset(kernelStorage); const controller = await makeSwingsetController( kernelStorage, deviceEndowments,