@aztec/validator-client 2.1.0-rc.1 → 2.1.0-rc.2

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.
@@ -219,7 +219,7 @@ export class BlockProposalHandler {
219
219
  deadline: this.getReexecutionDeadline(proposal, config)
220
220
  });
221
221
  const numFailedTxs = failedTxs.length;
222
- const slot = proposal.slotNumber;
222
+ const slot = proposal.slotNumber.toBigInt();
223
223
  this.log.verbose(`Transaction re-execution complete for slot ${slot}`, {
224
224
  numFailedTxs,
225
225
  numProposalTxs: txHashes.length,
package/dest/validator.js CHANGED
@@ -165,7 +165,7 @@ const SLASHABLE_BLOCK_PROPOSAL_VALIDATION_RESULT = [
165
165
  ...proposal.toBlockInfo(),
166
166
  proposer: proposer.toString()
167
167
  };
168
- this.log.info(`Received proposal for slot ${slotNumber}`, {
168
+ this.log.info(`Received proposal for block ${proposal.blockNumber} at slot ${slotNumber}`, {
169
169
  ...proposalInfo,
170
170
  txHashes: proposal.txHashes.map((t)=>t.toString())
171
171
  });
@@ -190,7 +190,7 @@ const SLASHABLE_BLOCK_PROPOSAL_VALIDATION_RESULT = [
190
190
  return undefined;
191
191
  }
192
192
  // Provided all of the above checks pass, we can attest to the proposal
193
- this.log.info(`Attesting to proposal for slot ${slotNumber}`, proposalInfo);
193
+ this.log.info(`Attesting to proposal for block ${proposal.blockNumber} at slot ${slotNumber}`, proposalInfo);
194
194
  this.metrics.incAttestations(inCommittee.length);
195
195
  // If the above function does not throw an error, then we can attest to the proposal
196
196
  return this.createBlockAttestationsFromProposal(proposal, inCommittee);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/validator-client",
3
- "version": "2.1.0-rc.1",
3
+ "version": "2.1.0-rc.2",
4
4
  "main": "dest/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -64,16 +64,16 @@
64
64
  ]
65
65
  },
66
66
  "dependencies": {
67
- "@aztec/constants": "2.1.0-rc.1",
68
- "@aztec/epoch-cache": "2.1.0-rc.1",
69
- "@aztec/ethereum": "2.1.0-rc.1",
70
- "@aztec/foundation": "2.1.0-rc.1",
71
- "@aztec/node-keystore": "2.1.0-rc.1",
72
- "@aztec/p2p": "2.1.0-rc.1",
73
- "@aztec/prover-client": "2.1.0-rc.1",
74
- "@aztec/slasher": "2.1.0-rc.1",
75
- "@aztec/stdlib": "2.1.0-rc.1",
76
- "@aztec/telemetry-client": "2.1.0-rc.1",
67
+ "@aztec/constants": "2.1.0-rc.2",
68
+ "@aztec/epoch-cache": "2.1.0-rc.2",
69
+ "@aztec/ethereum": "2.1.0-rc.2",
70
+ "@aztec/foundation": "2.1.0-rc.2",
71
+ "@aztec/node-keystore": "2.1.0-rc.2",
72
+ "@aztec/p2p": "2.1.0-rc.2",
73
+ "@aztec/prover-client": "2.1.0-rc.2",
74
+ "@aztec/slasher": "2.1.0-rc.2",
75
+ "@aztec/stdlib": "2.1.0-rc.2",
76
+ "@aztec/telemetry-client": "2.1.0-rc.2",
77
77
  "koa": "^2.16.1",
78
78
  "koa-router": "^13.1.1",
79
79
  "tslib": "^2.4.0",
@@ -265,7 +265,7 @@ export class BlockProposalHandler {
265
265
  });
266
266
 
267
267
  const numFailedTxs = failedTxs.length;
268
- const slot = proposal.slotNumber;
268
+ const slot = proposal.slotNumber.toBigInt();
269
269
  this.log.verbose(`Transaction re-execution complete for slot ${slot}`, {
270
270
  numFailedTxs,
271
271
  numProposalTxs: txHashes.length,
package/src/validator.ts CHANGED
@@ -262,7 +262,7 @@ export class ValidatorClient extends (EventEmitter as new () => WatcherEmitter)
262
262
  const incFailedAttestation = (reason: string) => this.metrics.incFailedAttestations(1, reason, partOfCommittee);
263
263
 
264
264
  const proposalInfo = { ...proposal.toBlockInfo(), proposer: proposer.toString() };
265
- this.log.info(`Received proposal for slot ${slotNumber}`, {
265
+ this.log.info(`Received proposal for block ${proposal.blockNumber} at slot ${slotNumber}`, {
266
266
  ...proposalInfo,
267
267
  txHashes: proposal.txHashes.map(t => t.toString()),
268
268
  });
@@ -304,7 +304,7 @@ export class ValidatorClient extends (EventEmitter as new () => WatcherEmitter)
304
304
  }
305
305
 
306
306
  // Provided all of the above checks pass, we can attest to the proposal
307
- this.log.info(`Attesting to proposal for slot ${slotNumber}`, proposalInfo);
307
+ this.log.info(`Attesting to proposal for block ${proposal.blockNumber} at slot ${slotNumber}`, proposalInfo);
308
308
  this.metrics.incAttestations(inCommittee.length);
309
309
 
310
310
  // If the above function does not throw an error, then we can attest to the proposal