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

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,
@@ -272,7 +272,7 @@ export class NodeKeystoreAdapter {
272
272
  * @returns Coinbase EthAddress
273
273
  */ getCoinbaseAddress(attesterAddress) {
274
274
  const validatorIndex = this.findValidatorIndexForAttester(attesterAddress);
275
- return this.keystoreManager.getCoinbaseAddress(validatorIndex);
275
+ return this.keystoreManager.getCoinbaseAddress(validatorIndex, attesterAddress);
276
276
  }
277
277
  /**
278
278
  * Get the publisher addresses for the validator that contains the given attester.
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.3",
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.3",
68
+ "@aztec/epoch-cache": "2.1.0-rc.3",
69
+ "@aztec/ethereum": "2.1.0-rc.3",
70
+ "@aztec/foundation": "2.1.0-rc.3",
71
+ "@aztec/node-keystore": "2.1.0-rc.3",
72
+ "@aztec/p2p": "2.1.0-rc.3",
73
+ "@aztec/prover-client": "2.1.0-rc.3",
74
+ "@aztec/slasher": "2.1.0-rc.3",
75
+ "@aztec/stdlib": "2.1.0-rc.3",
76
+ "@aztec/telemetry-client": "2.1.0-rc.3",
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,
@@ -324,7 +324,7 @@ export class NodeKeystoreAdapter implements ExtendedValidatorKeyStore {
324
324
  */
325
325
  getCoinbaseAddress(attesterAddress: EthAddress): EthAddress {
326
326
  const validatorIndex = this.findValidatorIndexForAttester(attesterAddress);
327
- return this.keystoreManager.getCoinbaseAddress(validatorIndex);
327
+ return this.keystoreManager.getCoinbaseAddress(validatorIndex, attesterAddress);
328
328
  }
329
329
 
330
330
  /**
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