@typeberry/jam 0.2.0-74f246e → 0.2.0-b6667ce

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.
@@ -9044,6 +9044,7 @@ function accumulationOutputComparator(a, b) {
9044
9044
 
9045
9045
  ;// CONCATENATED MODULE: ./packages/jam/block/gp-constants.ts
9046
9046
 
9047
+
9047
9048
  /**
9048
9049
  * This file lists all of the constants defined in the GrayPaper appendix.
9049
9050
  *
@@ -9054,7 +9055,7 @@ function accumulationOutputComparator(a, b) {
9054
9055
  * here are only temporarily for convenience. When we figure out better names
9055
9056
  * and places for these this file will be eradicated.
9056
9057
  *
9057
- * https://graypaper.fluffylabs.dev/#/579bd12/413000413000
9058
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/442300442300?v=0.7.2
9058
9059
  */
9059
9060
  /** `G_I`: The gas allocated to invoke a work-package’s Is-Authorized logic. */
9060
9061
  const G_I = 50_000_000;
@@ -9070,8 +9071,8 @@ const S = 1024;
9070
9071
  const T = 128;
9071
9072
  /** `W_A`: The maximum size of is-authorized code in octets. */
9072
9073
  const W_A = 64_000;
9073
- /** `W_B`: The maximum size of an encoded work-package with extrinsic data and imports. */
9074
- const W_B = 13_794_305;
9074
+ /** `W_B`: The maximum size of the concatenated variable-size blobs, extrinsics and imported segments of a work-package, in octets */
9075
+ const W_B = Compatibility.isGreaterOrEqual(GpVersion.V0_7_2) ? 13_791_360 : 13_794_305;
9075
9076
  /** `W_C`: The maximum size of service code in octets. */
9076
9077
  const W_C = 4_000_000;
9077
9078
  /** `W_M`: The maximum number of imports in a work-package. */