@@ -654,7 +654,6 @@ export class CheckpointProposalJob implements Traceable {
654654
655655 const checkpointProposalOptions : CheckpointProposalOptions = {
656656 publishFullTxs : ! ! this . config . publishTxsWithProposals ,
657- broadcastInvalidCheckpointProposal : this . config . broadcastInvalidBlockProposal ,
658657 } ;
659658
660659 let blocksInCheckpoint : L2Block [ ] = [ ] ;
@@ -910,7 +909,12 @@ export class CheckpointProposalJob implements Traceable {
910909 usedTxs . forEach ( tx => txHashesAlreadyIncluded . add ( tx . txHash . toString ( ) ) ) ;
911910
912911 // Sign the block proposal. This will throw if HA signing fails.
913- const proposal = await this . createBlockProposal ( block , inHash , usedTxs , blockProposalOptions ) ;
912+ const proposal = await this . createBlockProposal ( block , inHash , usedTxs , {
913+ ...blockProposalOptions ,
914+ broadcastInvalidBlockProposal :
915+ blockProposalOptions . broadcastInvalidBlockProposal ||
916+ block . indexWithinCheckpoint === this . config . invalidBlockProposalIndexWithinCheckpoint ,
917+ } ) ;
914918
915919 // Sync the proposed block to the archiver to make it available, only after we've managed to sign the proposal,
916920 // so we avoid polluting our archive with a block that would fail.
@@ -1130,6 +1134,9 @@ export class CheckpointProposalJob implements Traceable {
11301134 // `buildSlot` is the wall-clock slot during which the block was actually built.
11311135 this . eventEmitter . emit ( 'block-proposed' , {
11321136 blockNumber : block . number ,
1137+ blockHash,
1138+ checkpointNumber : this . checkpointNumber ,
1139+ indexWithinCheckpoint : block . indexWithinCheckpoint ,
11331140 slot : this . targetSlot ,
11341141 buildSlot : this . slotNow ,
11351142 } ) ;
0 commit comments