Skip to content

Commit

Permalink
Try fix p2p reex test
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 20, 2024
1 parent 5e596f0 commit dfb532b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yarn-project/sequencer-client/src/sequencer/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,12 @@ export class Sequencer {
await this.p2pClient.deleteTxs(Tx.getHashes(failedTxData));
}

if (!this.isFlushing && this.minTxsPerBLock !== undefined && processedTxs.length < this.minTxsPerBLock) {
if (
!interrupt && // We check for minTxCount only if we are proposing a block, not if we are validating it
!this.isFlushing && // And we skip the check when flushing, since we want all pending txs to go out, no matter if too few
this.minTxsPerBLock !== undefined &&
processedTxs.length < this.minTxsPerBLock
) {
this.log.warn(
`Block ${blockNumber} has too few txs to be proposed (got ${processedTxs.length} but required ${this.minTxsPerBLock})`,
{ slot, blockNumber, processedTxCount: processedTxs.length },
Expand Down

0 comments on commit dfb532b

Please sign in to comment.