@lodestar/validator 1.16.0-dev.b6890adf28 → 1.16.0-dev.c98a48a4fb

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.
@@ -58,7 +58,7 @@ export class BlockProposingService {
58
58
  blindedLocal,
59
59
  builderBoostFactor,
60
60
  });
61
- ApiError.assert(res, "Failed to produce block: validator.produceBlockV2");
61
+ ApiError.assert(res, "Failed to produce block: validator.produceBlockV3");
62
62
  const { response } = res;
63
63
  const debugLogCtx = {
64
64
  executionPayloadSource: response.executionPayloadSource,
package/lib/util/clock.js CHANGED
@@ -105,7 +105,7 @@ export class Clock {
105
105
  */
106
106
  export function getCurrentSlotAround(config, genesisTime) {
107
107
  const diffInSeconds = Date.now() / 1000 - genesisTime;
108
- const slotsSinceGenesis = Math.floor(diffInSeconds / config.SECONDS_PER_SLOT);
108
+ const slotsSinceGenesis = Math.round(diffInSeconds / config.SECONDS_PER_SLOT);
109
109
  return GENESIS_SLOT + slotsSinceGenesis;
110
110
  }
111
111
  // function useEventStream() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lodestar/validator",
3
- "version": "1.16.0-dev.b6890adf28",
3
+ "version": "1.16.0-dev.c98a48a4fb",
4
4
  "description": "A Typescript implementation of the validator client",
5
5
  "author": "ChainSafe Systems",
6
6
  "license": "LGPL-3.0",
@@ -32,7 +32,6 @@
32
32
  "test:spec": "vitest --run --config vitest.spec.config.ts --dir test/spec/",
33
33
  "test:e2e": "LODESTAR_PRESET=mainnet vitest --run --config vitest.e2e.config.ts --dir test/e2e",
34
34
  "download-spec-tests": "node --loader=ts-node/esm test/spec/downloadTests.ts",
35
- "coverage": "codecov -F lodestar-validator",
36
35
  "check-readme": "typescript-docs-verifier"
37
36
  },
38
37
  "repository": {
@@ -48,20 +47,20 @@
48
47
  "dependencies": {
49
48
  "@chainsafe/bls": "7.1.1",
50
49
  "@chainsafe/ssz": "^0.14.0",
51
- "@lodestar/api": "1.16.0-dev.b6890adf28",
52
- "@lodestar/config": "1.16.0-dev.b6890adf28",
53
- "@lodestar/db": "1.16.0-dev.b6890adf28",
54
- "@lodestar/params": "1.16.0-dev.b6890adf28",
55
- "@lodestar/state-transition": "1.16.0-dev.b6890adf28",
56
- "@lodestar/types": "1.16.0-dev.b6890adf28",
57
- "@lodestar/utils": "1.16.0-dev.b6890adf28",
50
+ "@lodestar/api": "1.16.0-dev.c98a48a4fb",
51
+ "@lodestar/config": "1.16.0-dev.c98a48a4fb",
52
+ "@lodestar/db": "1.16.0-dev.c98a48a4fb",
53
+ "@lodestar/params": "1.16.0-dev.c98a48a4fb",
54
+ "@lodestar/state-transition": "1.16.0-dev.c98a48a4fb",
55
+ "@lodestar/types": "1.16.0-dev.c98a48a4fb",
56
+ "@lodestar/utils": "1.16.0-dev.c98a48a4fb",
58
57
  "bigint-buffer": "^1.1.5",
59
58
  "strict-event-emitter-types": "^2.0.0"
60
59
  },
61
60
  "devDependencies": {
62
- "@lodestar/test-utils": "1.16.0-dev.b6890adf28",
61
+ "@lodestar/test-utils": "1.16.0-dev.c98a48a4fb",
63
62
  "bigint-buffer": "^1.1.5",
64
63
  "rimraf": "^4.4.1"
65
64
  },
66
- "gitHead": "34c2c4ab8635a924a8d448cc0d96efbb03fd7048"
65
+ "gitHead": "d9169453b89a149f8ff4fbf1fa018428387b62ba"
67
66
  }