@@ -631,7 +631,6 @@ export class CheckpointProposalJob implements Traceable {
631631
632632 const checkpointProposalOptions : CheckpointProposalOptions = {
633633 publishFullTxs : ! ! this . config . publishTxsWithProposals ,
634- broadcastInvalidCheckpointProposal : this . config . broadcastInvalidBlockProposal ,
635634 } ;
636635
637636 let blocksInCheckpoint : L2Block [ ] = [ ] ;
@@ -887,7 +886,12 @@ export class CheckpointProposalJob implements Traceable {
887886 usedTxs . forEach ( tx => txHashesAlreadyIncluded . add ( tx . txHash . toString ( ) ) ) ;
888887
889888 // Sign the block proposal. This will throw if HA signing fails.
890- const proposal = await this . createBlockProposal ( block , inHash , usedTxs , blockProposalOptions ) ;
889+ const proposal = await this . createBlockProposal ( block , inHash , usedTxs , {
890+ ...blockProposalOptions ,
891+ broadcastInvalidBlockProposal :
892+ blockProposalOptions . broadcastInvalidBlockProposal ||
893+ block . indexWithinCheckpoint === this . config . invalidBlockProposalIndexWithinCheckpoint ,
894+ } ) ;
891895
892896 // Sync the proposed block to the archiver to make it available, only after we've managed to sign the proposal,
893897 // so we avoid polluting our archive with a block that would fail.
@@ -1107,6 +1111,9 @@ export class CheckpointProposalJob implements Traceable {
11071111 // `buildSlot` is the wall-clock slot during which the block was actually built.
11081112 this . eventEmitter . emit ( 'block-proposed' , {
11091113 blockNumber : block . number ,
1114+ blockHash,
1115+ checkpointNumber : this . checkpointNumber ,
1116+ indexWithinCheckpoint : block . indexWithinCheckpoint ,
11101117 slot : this . targetSlot ,
11111118 buildSlot : this . slotNow ,
11121119 } ) ;
0 commit comments