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 Aug 11, 2024
1 parent eb173dc commit 31e8abf
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 @@ -214,6 +215,7 @@ export async function buildSwingset(
}

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

0 comments on commit 31e8abf

Please sign in to comment.