@@ -425,7 +425,7 @@ export class AggregatedAttestationPool {
425
425
}
426
426
427
427
private onScrapeMetrics ( metrics : Metrics ) : void {
428
- const aggregatedAttestationPoolMetrics = metrics . opPool . aggregatedAttestationPool ;
428
+ const poolMetrics = metrics . opPool . aggregatedAttestationPool ;
429
429
const allSlots = Array . from ( this . attestationGroupByIndexByDataHexBySlot . keys ( ) ) ;
430
430
431
431
// last item is current slot, we want the previous one, if available.
@@ -438,7 +438,7 @@ export class AggregatedAttestationPool {
438
438
if ( previousSlot !== null ) {
439
439
const groupByIndexByDataHex = this . attestationGroupByIndexByDataHexBySlot . get ( previousSlot ) ;
440
440
if ( groupByIndexByDataHex != null ) {
441
- aggregatedAttestationPoolMetrics . attDataPerSlot . set ( groupByIndexByDataHex . size ) ;
441
+ poolMetrics . attDataPerSlot . set ( groupByIndexByDataHex . size ) ;
442
442
443
443
let maxAttestations = 0 ;
444
444
let committeeCount = 0 ;
@@ -447,14 +447,14 @@ export class AggregatedAttestationPool {
447
447
for ( const group of groupByIndex . values ( ) ) {
448
448
const attestationCountInGroup = group . getAttestationCount ( ) ;
449
449
maxAttestations = Math . max ( maxAttestations , attestationCountInGroup ) ;
450
- aggregatedAttestationPoolMetrics . attestationsPerCommittee . observe ( attestationCountInGroup ) ;
450
+ poolMetrics . attestationsPerCommittee . observe ( attestationCountInGroup ) ;
451
451
committeeCount += 1 ;
452
452
453
453
attestationCount += attestationCountInGroup ;
454
454
}
455
455
}
456
- aggregatedAttestationPoolMetrics . maxAttestationsPerCommittee . set ( maxAttestations ) ;
457
- aggregatedAttestationPoolMetrics . committeesPerSlot . set ( committeeCount ) ;
456
+ poolMetrics . maxAttestationsPerCommittee . set ( maxAttestations ) ;
457
+ poolMetrics . committeesPerSlot . set ( committeeCount ) ;
458
458
}
459
459
}
460
460
@@ -471,8 +471,8 @@ export class AggregatedAttestationPool {
471
471
}
472
472
}
473
473
474
- aggregatedAttestationPoolMetrics . size . set ( attestationCount ) ;
475
- aggregatedAttestationPoolMetrics . uniqueData . set ( attestationDataCount ) ;
474
+ poolMetrics . size . set ( attestationCount ) ;
475
+ poolMetrics . uniqueData . set ( attestationDataCount ) ;
476
476
}
477
477
}
478
478
0 commit comments