@@ -9,6 +9,7 @@ import type { Prettify } from '@aztec/foundation/types';
99import type { SlasherConfig } from '@aztec/stdlib/interfaces/server' ;
1010import {
1111 type Offense ,
12+ OffenseType ,
1213 type ProposerSlashAction ,
1314 type ProposerSlashActionProvider ,
1415 type SlashPayloadRound ,
@@ -253,6 +254,7 @@ export class TallySlasherClient implements ProposerSlashActionProvider, SlasherC
253254 const offensesFromAlwaysSlash = ( this . config . slashValidatorsAlways ?? [ ] ) . map ( validator => ( {
254255 validator,
255256 amount : this . settings . slashingAmounts [ 2 ] ,
257+ offenseType : OffenseType . UNKNOWN ,
256258 } ) ) ;
257259 const [ offensesToForgive , offensesToSlash ] = partition ( [ ...offensesForRound , ...offensesFromAlwaysSlash ] , offense =>
258260 this . config . slashValidatorsNever ?. some ( v => v . equals ( offense . validator ) ) ,
@@ -291,7 +293,8 @@ export class TallySlasherClient implements ProposerSlashActionProvider, SlasherC
291293 } ) ;
292294
293295 const committees = await this . collectCommitteesActiveDuringRound ( slashedRound ) ;
294- const votes = getSlashConsensusVotesFromOffenses ( offensesToSlash , committees , this . settings ) ;
296+ const epochsForCommittees = getEpochsForRound ( slashedRound , this . settings ) ;
297+ const votes = getSlashConsensusVotesFromOffenses ( offensesToSlash , committees , epochsForCommittees , this . settings ) ;
295298 if ( votes . every ( v => v === 0 ) ) {
296299 this . log . warn ( `Computed votes for offenses are all zero. Skipping vote.` , {
297300 slotNumber,
0 commit comments