@typeberry/jam 0.4.0-5a35a0a → 0.4.0-d185014

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.
@@ -9024,11 +9024,9 @@ function reencodeAsView(codec, object, chainSpec) {
9024
9024
 
9025
9025
  /** Helper function to create most used hashes in the block */
9026
9026
  class TransitionHasher {
9027
- context;
9028
9027
  keccakHasher;
9029
9028
  blake2b;
9030
- constructor(context, keccakHasher, blake2b) {
9031
- this.context = context;
9029
+ constructor(keccakHasher, blake2b) {
9032
9030
  this.keccakHasher = keccakHasher;
9033
9031
  this.blake2b = blake2b;
9034
9032
  }
@@ -10965,7 +10963,7 @@ class Generator {
10965
10963
  // select validator for block
10966
10964
  const validatorId = tryAsValidatorIndex(newTimeSlot % 6);
10967
10965
  // retriev data from previous block
10968
- const hasher = new TransitionHasher(this.chainSpec, this.keccakHasher, this.blake2b);
10966
+ const hasher = new TransitionHasher(this.keccakHasher, this.blake2b);
10969
10967
  const parentHeaderHash = this.lastHeaderHash;
10970
10968
  const stateRoot = this.states.getStateRoot(this.lastState);
10971
10969
  // create extrinsic