Skip to content

Commit

Permalink
Revert "refactor: slightly better marshal identification for diagnost…
Browse files Browse the repository at this point in the history
…ics (#9153)"

This reverts commit f8ea4a8.
  • Loading branch information
mhofman authored Jun 14, 2024
1 parent 97fa24a commit 00b3e76
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/controller/initializeKernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export async function initializeKernel(config, kernelStorage, options = {}) {
serializeBodyFormat: 'smallcaps',
// TODO Temporary hack.
// See https://github.com/Agoric/agoric-sdk/issues/2780
errorIdNum: 60_000,
errorIdNum: 60000,
});
// @ts-expect-error xxx
const args = kunser(m.serialize(harden([vatObj0s, deviceObj0s])));
Expand Down
4 changes: 2 additions & 2 deletions packages/SwingSet/src/devices/lib/deviceTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ export function buildSerializationTools(syscall, deviceName) {
}

const m = makeMarshal(convertValToSlot, convertSlotToVal, {
marshalName: `deviceTools:${deviceName}`,
marshalName: `device:${deviceName}`,
serializeBodyFormat: 'smallcaps',
// TODO Temporary hack.
// See https://github.com/Agoric/agoric-sdk/issues/2780
errorIdNum: 40_000,
errorIdNum: 60000,
});

// for invoke(), these will unserialize the arguments, and serialize the
Expand Down
2 changes: 1 addition & 1 deletion packages/SwingSet/src/kernel/deviceSlots.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function makeDeviceSlots(
serializeBodyFormat: 'smallcaps',
// TODO Temporary hack.
// See https://github.com/Agoric/agoric-sdk/issues/2780
errorIdNum: 50_000,
errorIdNum: 50000,
});

function PresenceHandler(importSlot) {
Expand Down
2 changes: 1 addition & 1 deletion packages/swingset-liveslots/src/liveslots.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ function build(
serializeBodyFormat: 'smallcaps',
// TODO Temporary hack.
// See https://github.com/Agoric/agoric-sdk/issues/2780
errorIdNum: 70_000,
errorIdNum: 70000,
marshalSaveError: err =>
// By sending this to `console.warn`, under cosmic-swingset this is
// controlled by the `console` option given to makeLiveSlots.
Expand Down
3 changes: 0 additions & 3 deletions packages/swingset-liveslots/tools/fakeVirtualSupport.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,6 @@ export function makeFakeLiveSlotsStuff(options = {}) {

const marshal = makeMarshal(convertValToSlot, convertSlotToVal, {
serializeBodyFormat: 'smallcaps',
marshalName: 'fakeLiveSlots',
errorIdNum: 80_000,
marshalSaveError: _err => {},
});

function registerEntry(baseRef, val, valIsCohort) {
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet/api/src/lib-dehydrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export const makeDehydrator = (initialUnnamedCount = 0) => {
marshalName: 'hydration',
// TODO Temporary hack.
// See https://github.com/Agoric/agoric-sdk/issues/2780
errorIdNum: 30_000,
errorIdNum: 30000,
serializeBodyFormat: 'smallcaps',
},
);
Expand Down

0 comments on commit 00b3e76

Please sign in to comment.