@typeberry/jam 0.0.5-1ef0e31 → 0.0.5-6e657f4
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/block-generator/index.js +14 -2
- package/block-generator/index.js.map +1 -1
- package/importer/index.js +48 -24
- package/importer/index.js.map +1 -1
- package/index.js +14 -2
- package/index.js.map +1 -1
- package/jam-network/index.js +14 -2
- package/jam-network/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -35765,6 +35765,7 @@ function legacyServiceNested(serviceId, hash) {
|
|
|
35765
35765
|
;// CONCATENATED MODULE: ./packages/jam/state/accumulation-output.ts
|
|
35766
35766
|
|
|
35767
35767
|
|
|
35768
|
+
|
|
35768
35769
|
/**
|
|
35769
35770
|
* Single service-indexed commitment to accumulation output
|
|
35770
35771
|
*
|
|
@@ -35785,6 +35786,16 @@ class AccumulationOutput {
|
|
|
35785
35786
|
this.output = output;
|
|
35786
35787
|
}
|
|
35787
35788
|
}
|
|
35789
|
+
function accumulationOutputComparator(a, b) {
|
|
35790
|
+
const result = a.serviceId - b.serviceId;
|
|
35791
|
+
if (result < 0) {
|
|
35792
|
+
return Ordering.Less;
|
|
35793
|
+
}
|
|
35794
|
+
if (result > 0) {
|
|
35795
|
+
return Ordering.Greater;
|
|
35796
|
+
}
|
|
35797
|
+
return Ordering.Equal;
|
|
35798
|
+
}
|
|
35788
35799
|
|
|
35789
35800
|
;// CONCATENATED MODULE: ./packages/jam/state/assurances.ts
|
|
35790
35801
|
|
|
@@ -36890,6 +36901,7 @@ class StatisticsData {
|
|
|
36890
36901
|
|
|
36891
36902
|
|
|
36892
36903
|
|
|
36904
|
+
|
|
36893
36905
|
|
|
36894
36906
|
var in_memory_state_UpdateError;
|
|
36895
36907
|
(function (UpdateError) {
|
|
@@ -37293,7 +37305,7 @@ class InMemoryState extends WithDebug {
|
|
|
37293
37305
|
validatorsManager: common_tryAsServiceId(0),
|
|
37294
37306
|
autoAccumulateServices: [],
|
|
37295
37307
|
}),
|
|
37296
|
-
accumulationOutputLog: [],
|
|
37308
|
+
accumulationOutputLog: SortedArray.fromArray(accumulationOutputComparator, []),
|
|
37297
37309
|
services: new Map(),
|
|
37298
37310
|
});
|
|
37299
37311
|
}
|
|
@@ -37492,7 +37504,7 @@ var serialize;
|
|
|
37492
37504
|
/** C(16): https://graypaper.fluffylabs.dev/#/38c4e62/3b46033b4603?v=0.7.0 */
|
|
37493
37505
|
serialize.accumulationOutputLog = {
|
|
37494
37506
|
key: stateKeys.index(StateKeyIdx.Theta),
|
|
37495
|
-
Codec: descriptors_codec.sequenceVarLen(AccumulationOutput.Codec),
|
|
37507
|
+
Codec: descriptors_codec.sequenceVarLen(AccumulationOutput.Codec).convert((i) => i.array, (o) => SortedArray.fromSortedArray(accumulationOutputComparator, o)),
|
|
37496
37508
|
extract: (s) => s.accumulationOutputLog,
|
|
37497
37509
|
};
|
|
37498
37510
|
/** C(255, s): https://graypaper.fluffylabs.dev/#/85129da/383103383103?v=0.6.3 */
|