@agoric/cosmic-swingset 0.41.3-dev-4989f26.0 → 0.41.3-dev-779b73d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/chain-main.js +1 -1
- package/src/export-kernel-db.js +0 -2
- package/src/launch-chain.js +2 -3
- package/src/sim-chain.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-swingset",
|
|
3
|
-
"version": "0.41.3-dev-
|
|
3
|
+
"version": "0.41.3-dev-779b73d.0+779b73d",
|
|
4
4
|
"description": "Agoric's Cosmos blockchain integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "0.6.1-dev-
|
|
26
|
-
"@agoric/cosmos": "0.34.1-dev-
|
|
27
|
-
"@agoric/deploy-script-support": "0.10.3-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/store": "0.9.3-dev-
|
|
30
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
31
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
32
|
-
"@agoric/telemetry": "0.6.3-dev-
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-779b73d.0+779b73d",
|
|
26
|
+
"@agoric/cosmos": "0.34.1-dev-779b73d.0+779b73d",
|
|
27
|
+
"@agoric/deploy-script-support": "0.10.3-dev-779b73d.0+779b73d",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-779b73d.0+779b73d",
|
|
29
|
+
"@agoric/store": "0.9.3-dev-779b73d.0+779b73d",
|
|
30
|
+
"@agoric/swing-store": "0.9.2-dev-779b73d.0+779b73d",
|
|
31
|
+
"@agoric/swingset-vat": "0.32.3-dev-779b73d.0+779b73d",
|
|
32
|
+
"@agoric/telemetry": "0.6.3-dev-779b73d.0+779b73d",
|
|
33
33
|
"@endo/far": "^0.2.18",
|
|
34
34
|
"@endo/import-bundle": "^0.3.4",
|
|
35
35
|
"@endo/init": "^0.5.56",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
],
|
|
60
60
|
"timeout": "20m"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "779b73d11992c1e00cfe99bfe3444081107a34a1"
|
|
63
63
|
}
|
package/src/chain-main.js
CHANGED
|
@@ -494,6 +494,7 @@ export default async function main(progname, args, { env, homedir, agcc }) {
|
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
async function handleCosmosSnapshot(blockHeight, request, requestArgs) {
|
|
497
|
+
await null;
|
|
497
498
|
switch (request) {
|
|
498
499
|
case 'restore': {
|
|
499
500
|
const exportDir = requestArgs[0];
|
|
@@ -519,7 +520,6 @@ export default async function main(progname, args, { env, homedir, agcc }) {
|
|
|
519
520
|
});
|
|
520
521
|
stateSyncExport = exportData;
|
|
521
522
|
|
|
522
|
-
// eslint-disable-next-line @jessie.js/no-nested-await
|
|
523
523
|
await new Promise((resolve, reject) => {
|
|
524
524
|
tmpfs.dir(
|
|
525
525
|
{
|
package/src/export-kernel-db.js
CHANGED
|
@@ -144,11 +144,9 @@ export const initiateSwingStoreExport = (
|
|
|
144
144
|
if (includeExportData) {
|
|
145
145
|
log?.(`Writing Export Data`);
|
|
146
146
|
const fileName = `export-data.jsonl`;
|
|
147
|
-
// eslint-disable-next-line @jessie.js/no-nested-await
|
|
148
147
|
const exportDataFile = await open(pathResolve(exportDir, fileName), 'wx');
|
|
149
148
|
cleanup.push(async () => exportDataFile.close());
|
|
150
149
|
|
|
151
|
-
// eslint-disable-next-line @jessie.js/no-nested-await
|
|
152
150
|
for await (const entry of swingStoreExporter.getExportData()) {
|
|
153
151
|
await exportDataFile.write(`${JSON.stringify(entry)}\n`);
|
|
154
152
|
}
|
package/src/launch-chain.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
/* global process */
|
|
3
|
-
/* eslint-disable @jessie.js/no-nested-await */
|
|
4
3
|
import anylogger from 'anylogger';
|
|
5
4
|
|
|
6
5
|
import { E } from '@endo/far';
|
|
@@ -132,6 +131,7 @@ export async function buildSwingset(
|
|
|
132
131
|
swingsetConfig.vats[swingsetConfig.bootstrap || 'bootstrap'];
|
|
133
132
|
|
|
134
133
|
// Find the entrypoints for all the core proposals.
|
|
134
|
+
await null;
|
|
135
135
|
if (coreProposals) {
|
|
136
136
|
const { bundles, code } = await extractCoreProposalBundles(
|
|
137
137
|
coreProposals,
|
|
@@ -530,12 +530,11 @@ export async function launch({
|
|
|
530
530
|
*/
|
|
531
531
|
async function processActions(inboundQueue) {
|
|
532
532
|
let keepGoing = true;
|
|
533
|
+
await null;
|
|
533
534
|
for (const { action, context } of inboundQueue.consumeAll()) {
|
|
534
535
|
const inboundNum = `${context.blockHeight}-${context.txHash}-${context.msgIdx}`;
|
|
535
536
|
inboundQueueMetrics.decStat();
|
|
536
|
-
// eslint-disable-next-line no-await-in-loop
|
|
537
537
|
await performAction(action, inboundNum);
|
|
538
|
-
// eslint-disable-next-line no-await-in-loop
|
|
539
538
|
keepGoing = await runSwingset();
|
|
540
539
|
if (!keepGoing) {
|
|
541
540
|
// any leftover actions will remain on the inbound queue for possible
|