@agoric/cosmic-swingset 0.41.4-dev-7386420.0 → 0.41.4-dev-7bf5870.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 +12 -12
- package/src/launch-chain.js +17 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-swingset",
|
|
3
|
-
"version": "0.41.4-dev-
|
|
3
|
+
"version": "0.41.4-dev-7bf5870.0+7bf5870",
|
|
4
4
|
"description": "Agoric's Cosmos blockchain integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "0.6.1-dev-
|
|
26
|
-
"@agoric/builders": "0.1.1-dev-
|
|
27
|
-
"@agoric/cosmos": "0.34.2-dev-
|
|
28
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
29
|
-
"@agoric/internal": "0.3.3-dev-
|
|
30
|
-
"@agoric/store": "0.9.3-dev-
|
|
31
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/telemetry": "0.6.3-dev-
|
|
34
|
-
"@agoric/vm-config": "0.1.1-dev-
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-7bf5870.0+7bf5870",
|
|
26
|
+
"@agoric/builders": "0.1.1-dev-7bf5870.0+7bf5870",
|
|
27
|
+
"@agoric/cosmos": "0.34.2-dev-7bf5870.0+7bf5870",
|
|
28
|
+
"@agoric/deploy-script-support": "0.10.4-dev-7bf5870.0+7bf5870",
|
|
29
|
+
"@agoric/internal": "0.3.3-dev-7bf5870.0+7bf5870",
|
|
30
|
+
"@agoric/store": "0.9.3-dev-7bf5870.0+7bf5870",
|
|
31
|
+
"@agoric/swing-store": "0.9.2-dev-7bf5870.0+7bf5870",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-7bf5870.0+7bf5870",
|
|
33
|
+
"@agoric/telemetry": "0.6.3-dev-7bf5870.0+7bf5870",
|
|
34
|
+
"@agoric/vm-config": "0.1.1-dev-7bf5870.0+7bf5870",
|
|
35
35
|
"@endo/bundle-source": "^3.0.2",
|
|
36
36
|
"@endo/far": "^1.0.2",
|
|
37
37
|
"@endo/import-bundle": "^1.0.2",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"typeCoverage": {
|
|
70
70
|
"atLeast": 79.32
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "7bf587060268281ef4b53ed89cefccfd9cd3f8ea"
|
|
73
73
|
}
|
package/src/launch-chain.js
CHANGED
|
@@ -884,30 +884,34 @@ export async function launch({
|
|
|
884
884
|
// );
|
|
885
885
|
switch (action.type) {
|
|
886
886
|
case ActionType.AG_COSMOS_INIT: {
|
|
887
|
-
const { blockHeight, isBootstrap,
|
|
887
|
+
const { blockHeight, isBootstrap, upgradeDetails } = action;
|
|
888
888
|
|
|
889
889
|
if (!blockNeedsExecution(blockHeight)) {
|
|
890
890
|
return true;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
893
|
+
const softwareUpgradeCoreProposals = upgradeDetails?.coreProposals;
|
|
894
|
+
|
|
895
|
+
const { coreProposals: upgradeInfoCoreProposals } =
|
|
896
|
+
parseUpgradePlanInfo(upgradeDetails?.plan, ActionType.AG_COSMOS_INIT);
|
|
897
897
|
|
|
898
898
|
if (isBootstrap) {
|
|
899
899
|
// This only runs for the very first block on the chain.
|
|
900
900
|
await doBootstrap(action);
|
|
901
|
-
|
|
902
|
-
// Merge the core proposals from the bootstrap block with the
|
|
903
|
-
// ones from the upgrade plan.
|
|
904
|
-
coreProposals = mergeCoreProposals(
|
|
905
|
-
bootstrapCoreProposals,
|
|
906
|
-
coreProposals,
|
|
907
|
-
);
|
|
908
901
|
}
|
|
909
902
|
|
|
910
|
-
|
|
903
|
+
// Merge the core proposals from the bootstrap block with the
|
|
904
|
+
// ones from the upgrade.
|
|
905
|
+
const coreProposals = mergeCoreProposals(
|
|
906
|
+
bootstrapCoreProposals,
|
|
907
|
+
softwareUpgradeCoreProposals,
|
|
908
|
+
upgradeInfoCoreProposals,
|
|
909
|
+
);
|
|
910
|
+
|
|
911
|
+
if (coreProposals.steps.length) {
|
|
912
|
+
upgradeDetails ||
|
|
913
|
+
isBootstrap ||
|
|
914
|
+
Fail`Unexpected core proposals outside of consensus start`;
|
|
911
915
|
await doCoreProposals(action, coreProposals);
|
|
912
916
|
}
|
|
913
917
|
return true;
|