Skip to content

Commit

Permalink
fix(cosmic-swingset): call upgradeSwingset at startup
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
warner committed Jul 11, 2024
1 parent fdd7f13 commit 8030ac7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cosmic-swingset/src/launch-chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -218,6 +219,7 @@ export async function buildSwingset(
}

const coreProposals = await ensureSwingsetInitialized();
upgradeSwingset(kernelStorage);
const controller = await makeSwingsetController(
kernelStorage,
deviceEndowments,
Expand Down

0 comments on commit 8030ac7

Please sign in to comment.