@typeberry/jam 0.4.0-4809f38 → 0.4.0-fcdfbb1

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.
@@ -7100,11 +7100,9 @@ function sequenceViewFixLen(type, { fixedLength }) {
7100
7100
 
7101
7101
  /** Helper function to create most used hashes in the block */
7102
7102
  class TransitionHasher {
7103
- context;
7104
7103
  keccakHasher;
7105
7104
  blake2b;
7106
- constructor(context, keccakHasher, blake2b) {
7107
- this.context = context;
7105
+ constructor(keccakHasher, blake2b) {
7108
7106
  this.keccakHasher = keccakHasher;
7109
7107
  this.blake2b = blake2b;
7110
7108
  }
@@ -20816,13 +20814,11 @@ class AccumulateDataItem {
20816
20814
  * - gas cost and reports length for each service (statistics)
20817
20815
  */
20818
20816
  class AccumulateData {
20819
- autoAccumulateServicesByServiceId;
20820
20817
  reportsDataByServiceId;
20821
20818
  transfersByServiceId;
20822
20819
  serviceIds;
20823
20820
  gasLimitByServiceId;
20824
20821
  constructor(reports, transfers, autoAccumulateServicesByServiceId) {
20825
- this.autoAccumulateServicesByServiceId = autoAccumulateServicesByServiceId;
20826
20822
  const serviceIdsFromAutoAccumulate = new Set(autoAccumulateServicesByServiceId.keys());
20827
20823
  const { reportsDataByServiceId, serviceIds: serviceIdsFromReports, gasLimitByServiceId: reportsGasLimitByServiceId, } = this.transformReports(reports);
20828
20824
  this.reportsDataByServiceId = reportsDataByServiceId;
@@ -25002,7 +24998,7 @@ async function createImporter(config) {
25002
24998
  const interpreter = config.workerParams.pvm;
25003
24999
  const blocks = db.getBlocksDb();
25004
25000
  const states = db.getStatesDb();
25005
- const hasher = new TransitionHasher(chainSpec, await keccakHasher, await blake2b);
25001
+ const hasher = new TransitionHasher(await keccakHasher, await blake2b);
25006
25002
  const importer = new Importer(chainSpec, interpreter, hasher, main_logger, blocks, states);
25007
25003
  return {
25008
25004
  importer,