@lodestar/validator 1.49.0-dev.ee7c2aa8ee → 1.49.0-dev.f75a7365cc

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.
Files changed (48) hide show
  1. package/lib/services/validatorStore.d.ts +1 -1
  2. package/lib/services/validatorStore.d.ts.map +1 -1
  3. package/lib/services/validatorStore.js +7 -4
  4. package/lib/services/validatorStore.js.map +1 -1
  5. package/lib/slashingProtection/attestation/index.d.ts.map +1 -1
  6. package/lib/slashingProtection/attestation/index.js +19 -2
  7. package/lib/slashingProtection/attestation/index.js.map +1 -1
  8. package/lib/slashingProtection/block/errors.d.ts +8 -0
  9. package/lib/slashingProtection/block/errors.d.ts.map +1 -1
  10. package/lib/slashingProtection/block/errors.js +4 -0
  11. package/lib/slashingProtection/block/errors.js.map +1 -1
  12. package/lib/slashingProtection/block/index.d.ts +1 -0
  13. package/lib/slashingProtection/block/index.d.ts.map +1 -1
  14. package/lib/slashingProtection/block/index.js +48 -5
  15. package/lib/slashingProtection/block/index.js.map +1 -1
  16. package/lib/slashingProtection/index.d.ts +1 -1
  17. package/lib/slashingProtection/index.d.ts.map +1 -1
  18. package/lib/slashingProtection/index.js +18 -2
  19. package/lib/slashingProtection/index.js.map +1 -1
  20. package/lib/slashingProtection/interchange/errors.d.ts +11 -2
  21. package/lib/slashingProtection/interchange/errors.d.ts.map +1 -1
  22. package/lib/slashingProtection/interchange/errors.js +2 -0
  23. package/lib/slashingProtection/interchange/errors.js.map +1 -1
  24. package/lib/slashingProtection/interchange/formats/completeV4.js +4 -4
  25. package/lib/slashingProtection/interchange/formats/completeV4.js.map +1 -1
  26. package/lib/slashingProtection/interchange/formats/v5.js +4 -4
  27. package/lib/slashingProtection/interchange/formats/v5.js.map +1 -1
  28. package/lib/slashingProtection/interface.d.ts +5 -1
  29. package/lib/slashingProtection/interface.d.ts.map +1 -1
  30. package/lib/slashingProtection/utils.d.ts +5 -1
  31. package/lib/slashingProtection/utils.d.ts.map +1 -1
  32. package/lib/slashingProtection/utils.js +11 -0
  33. package/lib/slashingProtection/utils.js.map +1 -1
  34. package/lib/validator.d.ts.map +1 -1
  35. package/lib/validator.js +1 -1
  36. package/lib/validator.js.map +1 -1
  37. package/package.json +12 -12
  38. package/src/services/validatorStore.ts +9 -5
  39. package/src/slashingProtection/attestation/index.ts +19 -2
  40. package/src/slashingProtection/block/errors.ts +9 -0
  41. package/src/slashingProtection/block/index.ts +48 -6
  42. package/src/slashingProtection/index.ts +24 -1
  43. package/src/slashingProtection/interchange/errors.ts +6 -2
  44. package/src/slashingProtection/interchange/formats/completeV4.ts +4 -4
  45. package/src/slashingProtection/interchange/formats/v5.ts +4 -4
  46. package/src/slashingProtection/interface.ts +10 -1
  47. package/src/slashingProtection/utils.ts +12 -0
  48. package/src/validator.ts +6 -1
package/src/validator.ts CHANGED
@@ -430,7 +430,12 @@ export class Validator {
430
430
  }
431
431
 
432
432
  async importInterchange(interchange: Interchange): Promise<void> {
433
- return this.slashingProtection.importInterchange(interchange, this.genesis.genesisValidatorsRoot);
433
+ return this.slashingProtection.importInterchange(
434
+ interchange,
435
+ this.genesis.genesisValidatorsRoot,
436
+ undefined,
437
+ this.clock.currentEpoch
438
+ );
434
439
  }
435
440
 
436
441
  async exportInterchange(pubkeys: BLSPubkey[], formatVersion: InterchangeFormatVersion): Promise<Interchange> {