@lodestar/flare 1.22.0-dev.a7286bd669 → 1.22.0-dev.ef99ed7114

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.
@@ -4,7 +4,7 @@ import { ssz } from "@lodestar/types";
4
4
  import { config as chainConfig } from "@lodestar/config/default";
5
5
  import { createBeaconConfig } from "@lodestar/config";
6
6
  import { DOMAIN_BEACON_ATTESTER, MAX_VALIDATORS_PER_COMMITTEE } from "@lodestar/params";
7
- import { toHexString } from "@lodestar/utils";
7
+ import { toPubkeyHex } from "@lodestar/utils";
8
8
  import { computeSigningRoot } from "@lodestar/state-transition";
9
9
  import { deriveSecretKeys, secretKeysOptions } from "../util/deriveSecretKeys.js";
10
10
  export const selfSlashAttester = {
@@ -69,7 +69,7 @@ export async function selfSlashAttesterHandler(args) {
69
69
  for (let i = 0; i < pksHex.length; i++) {
70
70
  const { index, status, validator } = validators[i];
71
71
  const pkHex = pksHex[i];
72
- const validatorPkHex = toHexString(validator.pubkey);
72
+ const validatorPkHex = toPubkeyHex(validator.pubkey);
73
73
  if (validatorPkHex !== pkHex) {
74
74
  throw Error(`getStateValidators did not return same validator pubkey: ${validatorPkHex} != ${pkHex}`);
75
75
  }
@@ -3,7 +3,7 @@ import { ssz } from "@lodestar/types";
3
3
  import { config as chainConfig } from "@lodestar/config/default";
4
4
  import { createBeaconConfig } from "@lodestar/config";
5
5
  import { DOMAIN_BEACON_PROPOSER } from "@lodestar/params";
6
- import { toHexString } from "@lodestar/utils";
6
+ import { toPubkeyHex } from "@lodestar/utils";
7
7
  import { computeSigningRoot } from "@lodestar/state-transition";
8
8
  import { deriveSecretKeys, secretKeysOptions } from "../util/deriveSecretKeys.js";
9
9
  export const selfSlashProposer = {
@@ -64,7 +64,7 @@ export async function selfSlashProposerHandler(args) {
64
64
  const sk = sks[i];
65
65
  const { index, status, validator } = validators[i];
66
66
  try {
67
- const validatorPkHex = toHexString(validator.pubkey);
67
+ const validatorPkHex = toPubkeyHex(validator.pubkey);
68
68
  if (validatorPkHex !== pkHex) {
69
69
  throw Error(`getStateValidators did not return same validator pubkey: ${validatorPkHex} != ${pkHex}`);
70
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lodestar/flare",
3
- "version": "1.22.0-dev.a7286bd669",
3
+ "version": "1.22.0-dev.ef99ed7114",
4
4
  "description": "Beacon chain debugging tool",
5
5
  "author": "ChainSafe Systems",
6
6
  "license": "Apache-2.0",
@@ -60,17 +60,17 @@
60
60
  "dependencies": {
61
61
  "@chainsafe/bls-keygen": "^0.4.0",
62
62
  "@chainsafe/blst": "^2.0.3",
63
- "@lodestar/api": "1.22.0-dev.a7286bd669",
64
- "@lodestar/config": "1.22.0-dev.a7286bd669",
65
- "@lodestar/params": "1.22.0-dev.a7286bd669",
66
- "@lodestar/state-transition": "1.22.0-dev.a7286bd669",
67
- "@lodestar/types": "1.22.0-dev.a7286bd669",
68
- "@lodestar/utils": "1.22.0-dev.a7286bd669",
63
+ "@lodestar/api": "1.22.0-dev.ef99ed7114",
64
+ "@lodestar/config": "1.22.0-dev.ef99ed7114",
65
+ "@lodestar/params": "1.22.0-dev.ef99ed7114",
66
+ "@lodestar/state-transition": "1.22.0-dev.ef99ed7114",
67
+ "@lodestar/types": "1.22.0-dev.ef99ed7114",
68
+ "@lodestar/utils": "1.22.0-dev.ef99ed7114",
69
69
  "source-map-support": "^0.5.21",
70
70
  "yargs": "^17.7.1"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/yargs": "^17.0.24"
74
74
  },
75
- "gitHead": "1981d8d93c3112d19c43dfb59e7b90d415029631"
75
+ "gitHead": "394a87a97c4b8a2077704ae0dfed553ef03a5009"
76
76
  }