@aztec/sequencer-client 0.0.1-commit.7d4e6cd → 0.0.1-commit.7ffbba4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dest/client/sequencer-client.d.ts +23 -7
  2. package/dest/client/sequencer-client.d.ts.map +1 -1
  3. package/dest/client/sequencer-client.js +99 -16
  4. package/dest/config.d.ts +24 -6
  5. package/dest/config.d.ts.map +1 -1
  6. package/dest/config.js +40 -30
  7. package/dest/global_variable_builder/global_builder.d.ts +2 -4
  8. package/dest/global_variable_builder/global_builder.d.ts.map +1 -1
  9. package/dest/global_variable_builder/global_builder.js +2 -2
  10. package/dest/index.d.ts +2 -2
  11. package/dest/index.d.ts.map +1 -1
  12. package/dest/index.js +1 -1
  13. package/dest/publisher/config.d.ts +35 -17
  14. package/dest/publisher/config.d.ts.map +1 -1
  15. package/dest/publisher/config.js +106 -42
  16. package/dest/publisher/index.d.ts +2 -1
  17. package/dest/publisher/index.d.ts.map +1 -1
  18. package/dest/publisher/l1_tx_failed_store/factory.d.ts +11 -0
  19. package/dest/publisher/l1_tx_failed_store/factory.d.ts.map +1 -0
  20. package/dest/publisher/l1_tx_failed_store/factory.js +22 -0
  21. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts +59 -0
  22. package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts.map +1 -0
  23. package/dest/publisher/l1_tx_failed_store/failed_tx_store.js +1 -0
  24. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts +15 -0
  25. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts.map +1 -0
  26. package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.js +34 -0
  27. package/dest/publisher/l1_tx_failed_store/index.d.ts +4 -0
  28. package/dest/publisher/l1_tx_failed_store/index.d.ts.map +1 -0
  29. package/dest/publisher/l1_tx_failed_store/index.js +2 -0
  30. package/dest/publisher/sequencer-publisher-factory.d.ts +11 -3
  31. package/dest/publisher/sequencer-publisher-factory.d.ts.map +1 -1
  32. package/dest/publisher/sequencer-publisher-factory.js +27 -2
  33. package/dest/publisher/sequencer-publisher-metrics.d.ts +1 -1
  34. package/dest/publisher/sequencer-publisher-metrics.d.ts.map +1 -1
  35. package/dest/publisher/sequencer-publisher-metrics.js +12 -4
  36. package/dest/publisher/sequencer-publisher.d.ts +26 -8
  37. package/dest/publisher/sequencer-publisher.d.ts.map +1 -1
  38. package/dest/publisher/sequencer-publisher.js +338 -48
  39. package/dest/sequencer/checkpoint_proposal_job.d.ts +33 -10
  40. package/dest/sequencer/checkpoint_proposal_job.d.ts.map +1 -1
  41. package/dest/sequencer/checkpoint_proposal_job.js +211 -56
  42. package/dest/sequencer/checkpoint_voter.d.ts +3 -2
  43. package/dest/sequencer/checkpoint_voter.d.ts.map +1 -1
  44. package/dest/sequencer/checkpoint_voter.js +34 -10
  45. package/dest/sequencer/index.d.ts +1 -2
  46. package/dest/sequencer/index.d.ts.map +1 -1
  47. package/dest/sequencer/index.js +0 -1
  48. package/dest/sequencer/metrics.d.ts +17 -5
  49. package/dest/sequencer/metrics.d.ts.map +1 -1
  50. package/dest/sequencer/metrics.js +111 -30
  51. package/dest/sequencer/sequencer.d.ts +39 -18
  52. package/dest/sequencer/sequencer.d.ts.map +1 -1
  53. package/dest/sequencer/sequencer.js +96 -37
  54. package/dest/sequencer/timetable.d.ts +4 -6
  55. package/dest/sequencer/timetable.d.ts.map +1 -1
  56. package/dest/sequencer/timetable.js +7 -11
  57. package/dest/sequencer/types.d.ts +5 -2
  58. package/dest/sequencer/types.d.ts.map +1 -1
  59. package/dest/test/index.d.ts +3 -5
  60. package/dest/test/index.d.ts.map +1 -1
  61. package/dest/test/mock_checkpoint_builder.d.ts +22 -18
  62. package/dest/test/mock_checkpoint_builder.d.ts.map +1 -1
  63. package/dest/test/mock_checkpoint_builder.js +67 -38
  64. package/dest/test/utils.d.ts +8 -8
  65. package/dest/test/utils.d.ts.map +1 -1
  66. package/dest/test/utils.js +12 -11
  67. package/package.json +30 -28
  68. package/src/client/sequencer-client.ts +135 -18
  69. package/src/config.ts +55 -41
  70. package/src/global_variable_builder/global_builder.ts +3 -3
  71. package/src/index.ts +1 -6
  72. package/src/publisher/config.ts +121 -43
  73. package/src/publisher/index.ts +3 -0
  74. package/src/publisher/l1_tx_failed_store/factory.ts +32 -0
  75. package/src/publisher/l1_tx_failed_store/failed_tx_store.ts +55 -0
  76. package/src/publisher/l1_tx_failed_store/file_store_failed_tx_store.ts +46 -0
  77. package/src/publisher/l1_tx_failed_store/index.ts +3 -0
  78. package/src/publisher/sequencer-publisher-factory.ts +38 -6
  79. package/src/publisher/sequencer-publisher-metrics.ts +7 -3
  80. package/src/publisher/sequencer-publisher.ts +333 -60
  81. package/src/sequencer/checkpoint_proposal_job.ts +288 -70
  82. package/src/sequencer/checkpoint_voter.ts +32 -7
  83. package/src/sequencer/index.ts +0 -1
  84. package/src/sequencer/metrics.ts +124 -32
  85. package/src/sequencer/sequencer.ts +119 -39
  86. package/src/sequencer/timetable.ts +13 -12
  87. package/src/sequencer/types.ts +4 -1
  88. package/src/test/index.ts +2 -4
  89. package/src/test/mock_checkpoint_builder.ts +120 -76
  90. package/src/test/utils.ts +24 -14
  91. package/dest/sequencer/block_builder.d.ts +0 -26
  92. package/dest/sequencer/block_builder.d.ts.map +0 -1
  93. package/dest/sequencer/block_builder.js +0 -129
  94. package/src/sequencer/block_builder.ts +0 -216
@@ -436,21 +436,24 @@ function _apply_decs_2203_r(targetClass, memberDecs, classDecs, parentClass) {
436
436
  return (_apply_decs_2203_r = applyDecs2203RFactory())(targetClass, memberDecs, classDecs, parentClass);
437
437
  }
438
438
  var _dec, _dec1, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _initProto;
439
- import { BLOBS_PER_CHECKPOINT, FIELDS_PER_BLOB } from '@aztec/constants';
440
- import { BlockNumber } from '@aztec/foundation/branded-types';
439
+ import { BlockNumber, IndexWithinCheckpoint } from '@aztec/foundation/branded-types';
441
440
  import { randomInt } from '@aztec/foundation/crypto/random';
442
- import { Signature } from '@aztec/foundation/eth-signature';
441
+ import { flipSignature, generateRecoverableSignature, generateUnrecoverableSignature } from '@aztec/foundation/crypto/secp256k1-signer';
443
442
  import { filter } from '@aztec/foundation/iterator';
443
+ import { createLogger } from '@aztec/foundation/log';
444
444
  import { sleep, sleepUntil } from '@aztec/foundation/sleep';
445
445
  import { Timer } from '@aztec/foundation/timer';
446
- import { unfreeze } from '@aztec/foundation/types';
446
+ import { isErrorClass, unfreeze } from '@aztec/foundation/types';
447
447
  import { CommitteeAttestationsAndSigners, MaliciousCommitteeAttestationsAndSigners } from '@aztec/stdlib/block';
448
+ import { validateCheckpoint } from '@aztec/stdlib/checkpoint';
448
449
  import { getSlotStartBuildTimestamp } from '@aztec/stdlib/epoch-helpers';
449
450
  import { Gas } from '@aztec/stdlib/gas';
451
+ import { NoValidTxsError } from '@aztec/stdlib/interfaces/server';
450
452
  import { computeInHashFromL1ToL2Messages } from '@aztec/stdlib/messaging';
451
- import { orderAttestations } from '@aztec/stdlib/p2p';
453
+ import { orderAttestations, trimAttestations } from '@aztec/stdlib/p2p';
452
454
  import { AttestationTimeoutError } from '@aztec/stdlib/validators';
453
455
  import { Attributes, trackSpan } from '@aztec/telemetry-client';
456
+ import { DutyAlreadySignedError, SlashingProtectionError } from '@aztec/validator-ha-signer/errors';
454
457
  import { CheckpointVoter } from './checkpoint_voter.js';
455
458
  import { SequencerInterruptedError } from './errors.js';
456
459
  import { SequencerState } from './utils.js';
@@ -468,6 +471,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
468
471
  * as well as enqueueing votes for slashing and governance proposals. This class is created from
469
472
  * the Sequencer once the check for being the proposer for the slot has succeeded.
470
473
  */ export class CheckpointProposalJob {
474
+ epoch;
471
475
  slot;
472
476
  checkpointNumber;
473
477
  syncedToBlockNumber;
@@ -480,6 +484,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
480
484
  p2pClient;
481
485
  worldState;
482
486
  l1ToL2MessageSource;
487
+ l2BlockSource;
483
488
  checkpointsBuilder;
484
489
  blockSink;
485
490
  l1Constants;
@@ -491,7 +496,6 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
491
496
  metrics;
492
497
  eventEmitter;
493
498
  setStateFn;
494
- log;
495
499
  tracer;
496
500
  static{
497
501
  ({ e: [_initProto] } = _apply_decs_2203_r(this, [
@@ -537,8 +541,10 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
537
541
  ]
538
542
  ], []));
539
543
  }
540
- constructor(slot, checkpointNumber, syncedToBlockNumber, // TODO(palla/mbps): Can we remove the proposer in favor of attestorAddress? Need to check fisherman-node flows.
541
- proposer, publisher, attestorAddress, invalidateCheckpoint, validatorClient, globalsBuilder, p2pClient, worldState, l1ToL2MessageSource, checkpointsBuilder, blockSink, l1Constants, config, timetable, slasherClient, epochCache, dateProvider, metrics, eventEmitter, setStateFn, log, tracer){
544
+ log;
545
+ constructor(epoch, slot, checkpointNumber, syncedToBlockNumber, // TODO(palla/mbps): Can we remove the proposer in favor of attestorAddress? Need to check fisherman-node flows.
546
+ proposer, publisher, attestorAddress, invalidateCheckpoint, validatorClient, globalsBuilder, p2pClient, worldState, l1ToL2MessageSource, l2BlockSource, checkpointsBuilder, blockSink, l1Constants, config, timetable, slasherClient, epochCache, dateProvider, metrics, eventEmitter, setStateFn, tracer, bindings){
547
+ this.epoch = epoch;
542
548
  this.slot = slot;
543
549
  this.checkpointNumber = checkpointNumber;
544
550
  this.syncedToBlockNumber = syncedToBlockNumber;
@@ -551,6 +557,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
551
557
  this.p2pClient = p2pClient;
552
558
  this.worldState = worldState;
553
559
  this.l1ToL2MessageSource = l1ToL2MessageSource;
560
+ this.l2BlockSource = l2BlockSource;
554
561
  this.checkpointsBuilder = checkpointsBuilder;
555
562
  this.blockSink = blockSink;
556
563
  this.l1Constants = l1Constants;
@@ -562,9 +569,12 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
562
569
  this.metrics = metrics;
563
570
  this.eventEmitter = eventEmitter;
564
571
  this.setStateFn = setStateFn;
565
- this.log = log;
566
572
  this.tracer = tracer;
567
573
  _initProto(this);
574
+ this.log = createLogger('sequencer:checkpoint-proposal', {
575
+ ...bindings,
576
+ instanceId: `slot-${slot}`
577
+ });
568
578
  }
569
579
  /**
570
580
  * Executes the checkpoint proposal job.
@@ -579,7 +589,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
579
589
  // Wait until the voting promises have resolved, so all requests are enqueued (not sent)
580
590
  await Promise.all(votesPromises);
581
591
  if (checkpoint) {
582
- this.metrics.recordBlockProposalSuccess();
592
+ this.metrics.recordCheckpointProposalSuccess();
583
593
  }
584
594
  // Do not post anything to L1 if we are fishermen, but do perform L1 fee analysis
585
595
  if (this.config.fishermanMode) {
@@ -628,11 +638,15 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
628
638
  // Collect L1 to L2 messages for the checkpoint and compute their hash
629
639
  const l1ToL2Messages = await this.l1ToL2MessageSource.getL1ToL2Messages(this.checkpointNumber);
630
640
  const inHash = computeInHashFromL1ToL2Messages(l1ToL2Messages);
641
+ // Collect the out hashes of all the checkpoints before this one in the same epoch
642
+ const previousCheckpointOutHashes = (await this.l2BlockSource.getCheckpointsDataForEpoch(this.epoch)).filter((c)=>c.checkpointNumber < this.checkpointNumber).map((c)=>c.checkpointOutHash);
643
+ // Get the fee asset price modifier from the oracle
644
+ const feeAssetPriceModifier = await this.publisher.getFeeAssetPriceModifier();
631
645
  const fork = _ts_add_disposable_resource(env, await this.worldState.fork(this.syncedToBlockNumber, {
632
646
  closeDelayMs: 12_000
633
- }), false);
647
+ }), true);
634
648
  // Create checkpoint builder for the entire slot
635
- const checkpointBuilder = await this.checkpointsBuilder.startCheckpoint(this.checkpointNumber, checkpointGlobalVariables, l1ToL2Messages, fork);
649
+ const checkpointBuilder = await this.checkpointsBuilder.startCheckpoint(this.checkpointNumber, checkpointGlobalVariables, feeAssetPriceModifier, l1ToL2Messages, previousCheckpointOutHashes, fork, this.log.getBindings());
636
650
  // Options for the validator client when creating block and checkpoint proposals
637
651
  const blockProposalOptions = {
638
652
  publishFullTxs: !!this.config.publishTxsWithProposals,
@@ -642,8 +656,23 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
642
656
  publishFullTxs: !!this.config.publishTxsWithProposals,
643
657
  broadcastInvalidCheckpointProposal: this.config.broadcastInvalidBlockProposal
644
658
  };
645
- // Main loop: build blocks for the checkpoint
646
- const { blocksInCheckpoint, blockPendingBroadcast } = await this.buildBlocksForCheckpoint(checkpointBuilder, checkpointGlobalVariables.timestamp, inHash, blockProposalOptions);
659
+ let blocksInCheckpoint = [];
660
+ let blockPendingBroadcast = undefined;
661
+ const checkpointBuildTimer = new Timer();
662
+ try {
663
+ // Main loop: build blocks for the checkpoint
664
+ const result = await this.buildBlocksForCheckpoint(checkpointBuilder, checkpointGlobalVariables.timestamp, inHash, blockProposalOptions);
665
+ blocksInCheckpoint = result.blocksInCheckpoint;
666
+ blockPendingBroadcast = result.blockPendingBroadcast;
667
+ } catch (err) {
668
+ // These errors are expected in HA mode, so we yield and let another HA node handle the slot
669
+ // The only distinction between the 2 errors is SlashingProtectionError throws when the payload is different,
670
+ // which is normal for block building (may have picked different txs)
671
+ if (this.handleHASigningError(err, 'Block proposal')) {
672
+ return undefined;
673
+ }
674
+ throw err;
675
+ }
647
676
  if (blocksInCheckpoint.length === 0) {
648
677
  this.log.warn(`No blocks were built for slot ${this.slot}`, {
649
678
  slot: this.slot
@@ -653,10 +682,36 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
653
682
  });
654
683
  return undefined;
655
684
  }
685
+ const minBlocksForCheckpoint = this.config.minBlocksForCheckpoint;
686
+ if (minBlocksForCheckpoint !== undefined && blocksInCheckpoint.length < minBlocksForCheckpoint) {
687
+ this.log.warn(`Checkpoint has fewer blocks than minimum (${blocksInCheckpoint.length} < ${minBlocksForCheckpoint}), skipping proposal`, {
688
+ slot: this.slot,
689
+ blocksBuilt: blocksInCheckpoint.length,
690
+ minBlocksForCheckpoint
691
+ });
692
+ return undefined;
693
+ }
656
694
  // Assemble and broadcast the checkpoint proposal, including the last block that was not
657
695
  // broadcasted yet, and wait to collect the committee attestations.
658
696
  this.setStateFn(SequencerState.ASSEMBLING_CHECKPOINT, this.slot);
659
697
  const checkpoint = await checkpointBuilder.completeCheckpoint();
698
+ // Final validation round for the checkpoint before we propose it, just for safety
699
+ try {
700
+ validateCheckpoint(checkpoint, {
701
+ rollupManaLimit: this.l1Constants.rollupManaLimit,
702
+ maxL2BlockGas: this.config.maxL2BlockGas,
703
+ maxDABlockGas: this.config.maxDABlockGas,
704
+ maxTxsPerBlock: this.config.maxTxsPerBlock,
705
+ maxTxsPerCheckpoint: this.config.maxTxsPerCheckpoint
706
+ });
707
+ } catch (err) {
708
+ this.log.error(`Built an invalid checkpoint at slot ${this.slot} (skipping proposal)`, err, {
709
+ checkpoint: checkpoint.header.toInspect()
710
+ });
711
+ return undefined;
712
+ }
713
+ // Record checkpoint-level build metrics
714
+ this.metrics.recordCheckpointBuild(checkpointBuildTimer.ms(), blocksInCheckpoint.length, checkpoint.getStats().txCount, Number(checkpoint.header.totalManaUsed.toBigInt()));
660
715
  // Do not collect attestations nor publish to L1 in fisherman mode
661
716
  if (this.config.fishermanMode) {
662
717
  this.log.info(`Built checkpoint for slot ${this.slot} with ${blocksInCheckpoint.length} blocks. ` + `Skipping proposal in fisherman mode.`, {
@@ -674,7 +729,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
674
729
  txs: blockPendingBroadcast.txs
675
730
  };
676
731
  // Create the checkpoint proposal and broadcast it
677
- const proposal = await this.validatorClient.createCheckpointProposal(checkpoint.header, checkpoint.archive.root, lastBlock, this.proposer, checkpointProposalOptions);
732
+ const proposal = await this.validatorClient.createCheckpointProposal(checkpoint.header, checkpoint.archive.root, feeAssetPriceModifier, lastBlock, this.proposer, checkpointProposalOptions);
678
733
  const blockProposedAt = this.dateProvider.now();
679
734
  await this.p2pClient.broadcastCheckpointProposal(proposal);
680
735
  this.setStateFn(SequencerState.COLLECTING_ATTESTATIONS, this.slot);
@@ -683,12 +738,30 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
683
738
  this.metrics.recordCheckpointAttestationDelay(blockAttestedAt - blockProposedAt);
684
739
  // Proposer must sign over the attestations before pushing them to L1
685
740
  const signer = this.proposer ?? this.publisher.getSenderAddress();
686
- const attestationsSignature = await this.validatorClient.signAttestationsAndSigners(attestations, signer);
741
+ let attestationsSignature;
742
+ try {
743
+ attestationsSignature = await this.validatorClient.signAttestationsAndSigners(attestations, signer, this.slot, this.checkpointNumber);
744
+ } catch (err) {
745
+ // We shouldn't really get here since we yield to another HA node
746
+ // as soon as we see these errors when creating block or checkpoint proposals.
747
+ if (this.handleHASigningError(err, 'Attestations signature')) {
748
+ return undefined;
749
+ }
750
+ throw err;
751
+ }
687
752
  // Enqueue publishing the checkpoint to L1
688
753
  this.setStateFn(SequencerState.PUBLISHING_CHECKPOINT, this.slot);
689
754
  const aztecSlotDuration = this.l1Constants.slotDuration;
690
755
  const slotStartBuildTimestamp = this.getSlotStartBuildTimestamp();
691
756
  const txTimeoutAt = new Date((slotStartBuildTimestamp + aztecSlotDuration) * 1000);
757
+ // If we have been configured to potentially skip publishing checkpoint then roll the dice here
758
+ if (this.config.skipPublishingCheckpointsPercent !== undefined && this.config.skipPublishingCheckpointsPercent > 0) {
759
+ const result = Math.max(0, randomInt(100));
760
+ if (result < this.config.skipPublishingCheckpointsPercent) {
761
+ this.log.warn(`Skipping publishing proposal for checkpoint ${checkpoint.number}. Configured percentage: ${this.config.skipPublishingCheckpointsPercent}, generated value: ${result}`);
762
+ return checkpoint;
763
+ }
764
+ }
692
765
  await this.publisher.enqueueProposeCheckpoint(checkpoint, attestations, attestationsSignature, {
693
766
  txTimeoutAt,
694
767
  forcePendingCheckpointNumber: this.invalidateCheckpoint?.forcePendingCheckpointNumber
@@ -698,9 +771,14 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
698
771
  env.error = e;
699
772
  env.hasError = true;
700
773
  } finally{
701
- _ts_dispose_resources(env);
774
+ const result = _ts_dispose_resources(env);
775
+ if (result) await result;
702
776
  }
703
777
  } catch (err) {
778
+ if (err && (err instanceof DutyAlreadySignedError || err instanceof SlashingProtectionError)) {
779
+ // swallow this error. It's already been logged by a function deeper in the stack
780
+ return undefined;
781
+ }
704
782
  this.log.error(`Error building checkpoint at slot ${this.slot}`, err);
705
783
  return undefined;
706
784
  }
@@ -715,7 +793,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
715
793
  let blockPendingBroadcast = undefined;
716
794
  while(true){
717
795
  const blocksBuilt = blocksInCheckpoint.length;
718
- const indexWithinCheckpoint = blocksBuilt;
796
+ const indexWithinCheckpoint = IndexWithinCheckpoint(blocksBuilt);
719
797
  const blockNumber = BlockNumber(initialBlockNumber + blocksBuilt);
720
798
  const secondsIntoSlot = this.getSecondsIntoSlot();
721
799
  const timingInfo = this.timetable.canStartNextBlock(secondsIntoSlot);
@@ -738,6 +816,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
738
816
  indexWithinCheckpoint,
739
817
  txHashesAlreadyIncluded
740
818
  });
819
+ // TODO(palla/mbps): Review these conditions. We may want to keep trying in some scenarios.
741
820
  if (!buildResult && timingInfo.isLastBlock) {
742
821
  break;
743
822
  } else if (!buildResult && timingInfo.deadline !== undefined) {
@@ -762,7 +841,14 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
762
841
  // Sync the proposed block to the archiver to make it available
763
842
  // Note that the checkpoint builder uses its own fork so it should not need to wait for this syncing
764
843
  // Eventually we should refactor the checkpoint builder to not need a separate long-lived fork
765
- await this.syncProposedBlockToArchiver(block);
844
+ // Fire and forget - don't block the critical path, but log errors
845
+ this.syncProposedBlockToArchiver(block).catch((err)=>{
846
+ this.log.error(`Failed to sync proposed block ${block.number} to archiver`, {
847
+ blockNumber: block.number,
848
+ err
849
+ });
850
+ });
851
+ usedTxs.forEach((tx)=>txHashesAlreadyIncluded.add(tx.txHash.toString()));
766
852
  // If this is the last block, exit the loop now so we start collecting attestations
767
853
  if (timingInfo.isLastBlock) {
768
854
  this.log.verbose(`Completed final block ${blockNumber} for slot ${this.slot}`, {
@@ -827,55 +913,56 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
827
913
  }
828
914
  // Create iterator to pending txs. We filter out txs already included in previous blocks in the checkpoint
829
915
  // just in case p2p failed to sync the provisional block and didn't get to remove those txs from the mempool yet.
830
- const pendingTxs = filter(this.p2pClient.iteratePendingTxs(), (tx)=>!txHashesAlreadyIncluded.has(tx.txHash.toString()));
916
+ const pendingTxs = filter(this.p2pClient.iterateEligiblePendingTxs(), (tx)=>!txHashesAlreadyIncluded.has(tx.txHash.toString()));
831
917
  this.log.debug(`Building block ${blockNumber} at index ${indexWithinCheckpoint} for slot ${this.slot} with ${availableTxs} available txs`, {
832
918
  slot: this.slot,
833
919
  blockNumber,
834
920
  indexWithinCheckpoint
835
921
  });
836
922
  this.setStateFn(SequencerState.CREATING_BLOCK, this.slot);
923
+ // Per-block limits derived at startup by computeBlockLimits(), further capped
924
+ // by remaining checkpoint-level budgets inside CheckpointBuilder before each block is built.
837
925
  const blockBuilderOptions = {
838
926
  maxTransactions: this.config.maxTxsPerBlock,
839
- maxBlockSize: this.config.maxBlockSizeInBytes,
840
- maxBlockGas: new Gas(this.config.maxDABlockGas, this.config.maxL2BlockGas),
841
- maxBlobFields: BLOBS_PER_CHECKPOINT * FIELDS_PER_BLOB,
842
- deadline: buildDeadline
927
+ maxBlockGas: this.config.maxL2BlockGas !== undefined || this.config.maxDABlockGas !== undefined ? new Gas(this.config.maxDABlockGas ?? Infinity, this.config.maxL2BlockGas ?? Infinity) : undefined,
928
+ deadline: buildDeadline,
929
+ isBuildingProposal: true
843
930
  };
844
931
  // Actually build the block by executing txs
845
- const workTimer = new Timer();
846
- const { publicGas, block, publicProcessorDuration, numTxs, blockBuildingTimer, usedTxs, failedTxs } = await checkpointBuilder.buildBlock(pendingTxs, blockNumber, blockTimestamp, blockBuilderOptions);
847
- const blockBuildDuration = workTimer.ms();
932
+ const buildResult = await this.buildSingleBlockWithCheckpointBuilder(checkpointBuilder, pendingTxs, blockNumber, blockTimestamp, blockBuilderOptions);
848
933
  // If any txs failed during execution, drop them from the mempool so we don't pick them up again
849
- await this.dropFailedTxsFromP2P(failedTxs);
934
+ await this.dropFailedTxsFromP2P(buildResult.failedTxs);
850
935
  // Check if we have created a block with enough txs. If there were invalid txs in the pool, or if execution took
851
936
  // too long, then we may not get to minTxsPerBlock after executing public functions.
852
937
  const minValidTxs = this.config.minValidTxsPerBlock ?? minTxs;
853
- if (!forceCreate && numTxs < minValidTxs) {
854
- this.log.warn(`Block ${blockNumber} at index ${indexWithinCheckpoint} on slot ${this.slot} has too few valid txs to be proposed (got ${numTxs} but required ${minValidTxs})`, {
938
+ const numTxs = buildResult.status === 'no-valid-txs' ? 0 : buildResult.numTxs;
939
+ if (buildResult.status === 'no-valid-txs' || !forceCreate && numTxs < minValidTxs) {
940
+ this.log.warn(`Block ${blockNumber} at index ${indexWithinCheckpoint} on slot ${this.slot} has too few valid txs to be proposed`, {
855
941
  slot: this.slot,
856
942
  blockNumber,
857
943
  numTxs,
858
- indexWithinCheckpoint
944
+ indexWithinCheckpoint,
945
+ minValidTxs,
946
+ buildResult: buildResult.status
859
947
  });
860
- this.eventEmitter.emit('block-tx-count-check-failed', {
861
- minTxs: minValidTxs,
862
- availableTxs: numTxs,
948
+ this.eventEmitter.emit('block-build-failed', {
949
+ reason: `Insufficient valid txs`,
863
950
  slot: this.slot
864
951
  });
865
952
  this.metrics.recordBlockProposalFailed('insufficient_valid_txs');
866
953
  return undefined;
867
954
  }
868
955
  // Block creation succeeded, emit stats and metrics
956
+ const { block, publicProcessorDuration, usedTxs, blockBuildDuration } = buildResult;
869
957
  const blockStats = {
870
958
  eventName: 'l2-block-built',
871
959
  duration: blockBuildDuration,
872
960
  publicProcessDuration: publicProcessorDuration,
873
- rollupCircuitsDuration: blockBuildingTimer.ms(),
874
961
  ...block.getStats()
875
962
  };
876
963
  const blockHash = await block.hash();
877
964
  const txHashes = block.body.txEffects.map((tx)=>tx.txHash);
878
- const manaPerSec = publicGas.l2Gas / (blockBuildDuration / 1000);
965
+ const manaPerSec = block.header.totalManaUsed.toNumberUnsafe() / (blockBuildDuration / 1000);
879
966
  this.log.info(`Built block ${block.number} at checkpoint ${this.checkpointNumber} for slot ${this.slot} with ${numTxs} txs`, {
880
967
  blockHash,
881
968
  txHashes,
@@ -886,7 +973,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
886
973
  blockNumber: block.number,
887
974
  slot: this.slot
888
975
  });
889
- this.metrics.recordBuiltBlock(blockBuildDuration, publicGas.l2Gas);
976
+ this.metrics.recordBuiltBlock(blockBuildDuration, block.header.totalManaUsed.toNumberUnsafe());
890
977
  return {
891
978
  block,
892
979
  usedTxs
@@ -907,9 +994,30 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
907
994
  };
908
995
  }
909
996
  }
997
+ /** Uses the checkpoint builder to build a block, catching specific txs */ async buildSingleBlockWithCheckpointBuilder(checkpointBuilder, pendingTxs, blockNumber, blockTimestamp, blockBuilderOptions) {
998
+ try {
999
+ const workTimer = new Timer();
1000
+ const result = await checkpointBuilder.buildBlock(pendingTxs, blockNumber, blockTimestamp, blockBuilderOptions);
1001
+ const blockBuildDuration = workTimer.ms();
1002
+ return {
1003
+ ...result,
1004
+ blockBuildDuration,
1005
+ status: 'success'
1006
+ };
1007
+ } catch (err) {
1008
+ if (isErrorClass(err, NoValidTxsError)) {
1009
+ return {
1010
+ failedTxs: err.failedTxs,
1011
+ status: 'no-valid-txs'
1012
+ };
1013
+ }
1014
+ throw err;
1015
+ }
1016
+ }
910
1017
  /** Waits until minTxs are available on the pool for building a block. */ async waitForMinTxs(opts) {
911
- const minTxs = this.config.minTxsPerBlock;
912
1018
  const { indexWithinCheckpoint, blockNumber, buildDeadline, forceCreate } = opts;
1019
+ // We only allow a block with 0 txs in the first block of the checkpoint
1020
+ const minTxs = indexWithinCheckpoint > 0 && this.config.minTxsPerBlock === 0 ? 1 : this.config.minTxsPerBlock;
913
1021
  // Deadline is undefined if we are not enforcing the timetable, meaning we'll exit immediately when out of time
914
1022
  const startBuildingDeadline = buildDeadline ? new Date(buildDeadline.getTime() - this.timetable.minExecutionTime * 1000) : undefined;
915
1023
  let availableTxs = await this.p2pClient.getPendingTxCount();
@@ -929,7 +1037,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
929
1037
  slot: this.slot,
930
1038
  indexWithinCheckpoint
931
1039
  });
932
- await sleep(TXS_POLLING_MS);
1040
+ await this.waitForTxsPollingInterval();
933
1041
  availableTxs = await this.p2pClient.getPendingTxCount();
934
1042
  }
935
1043
  return {
@@ -964,17 +1072,23 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
964
1072
  return new CommitteeAttestationsAndSigners(orderAttestations(attestations ?? [], committee));
965
1073
  }
966
1074
  const attestationTimeAllowed = this.config.enforceTimeTable ? this.timetable.getMaxAllowedTime(SequencerState.PUBLISHING_CHECKPOINT) : this.l1Constants.slotDuration;
967
- const attestationDeadline = new Date(this.dateProvider.now() + attestationTimeAllowed * 1000);
1075
+ const attestationDeadline = new Date((this.getSlotStartBuildTimestamp() + attestationTimeAllowed) * 1000);
968
1076
  this.metrics.recordRequiredAttestations(numberOfRequiredAttestations, attestationTimeAllowed);
969
1077
  const collectAttestationsTimer = new Timer();
970
1078
  let collectedAttestationsCount = 0;
971
1079
  try {
972
1080
  const attestations = await this.validatorClient.collectAttestations(proposal, numberOfRequiredAttestations, attestationDeadline);
973
1081
  collectedAttestationsCount = attestations.length;
1082
+ // Trim attestations to minimum required to save L1 calldata gas
1083
+ const localAddresses = this.validatorClient.getValidatorAddresses();
1084
+ const trimmed = trimAttestations(attestations, numberOfRequiredAttestations, this.attestorAddress, localAddresses);
1085
+ if (trimmed.length < attestations.length) {
1086
+ this.log.debug(`Trimmed attestations from ${attestations.length} to ${trimmed.length} for L1 submission`);
1087
+ }
974
1088
  // Rollup contract requires that the signatures are provided in the order of the committee
975
- const sorted = orderAttestations(attestations, committee);
1089
+ const sorted = orderAttestations(trimmed, committee);
976
1090
  // Manipulate the attestations if we've been configured to do so
977
- if (this.config.injectFakeAttestation || this.config.shuffleAttestationOrdering) {
1091
+ if (this.config.injectFakeAttestation || this.config.injectHighSValueAttestation || this.config.injectUnrecoverableSignatureAttestation || this.config.shuffleAttestationOrdering) {
978
1092
  return this.manipulateAttestations(proposal.slotNumber, epoch, seed, committee, sorted);
979
1093
  }
980
1094
  return new CommitteeAttestationsAndSigners(sorted);
@@ -991,7 +1105,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
991
1105
  // Compute the proposer index in the committee, since we dont want to tweak it.
992
1106
  // Otherwise, the L1 rollup contract will reject the block outright.
993
1107
  const proposerIndex = Number(this.epochCache.computeProposerIndex(slotNumber, epoch, seed, BigInt(committee.length)));
994
- if (this.config.injectFakeAttestation) {
1108
+ if (this.config.injectFakeAttestation || this.config.injectHighSValueAttestation || this.config.injectUnrecoverableSignatureAttestation) {
995
1109
  // Find non-empty attestations that are not from the proposer
996
1110
  const nonProposerIndices = [];
997
1111
  for(let i = 0; i < attestations.length; i++){
@@ -1001,8 +1115,16 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
1001
1115
  }
1002
1116
  if (nonProposerIndices.length > 0) {
1003
1117
  const targetIndex = nonProposerIndices[randomInt(nonProposerIndices.length)];
1004
- this.log.warn(`Injecting fake attestation in checkpoint for slot ${slotNumber} at index ${targetIndex}`);
1005
- unfreeze(attestations[targetIndex]).signature = Signature.random();
1118
+ if (this.config.injectHighSValueAttestation) {
1119
+ this.log.warn(`Injecting high-s value attestation in checkpoint for slot ${slotNumber} at index ${targetIndex}`);
1120
+ unfreeze(attestations[targetIndex]).signature = flipSignature(attestations[targetIndex].signature);
1121
+ } else if (this.config.injectUnrecoverableSignatureAttestation) {
1122
+ this.log.warn(`Injecting unrecoverable signature attestation in checkpoint for slot ${slotNumber} at index ${targetIndex}`);
1123
+ unfreeze(attestations[targetIndex]).signature = generateUnrecoverableSignature();
1124
+ } else {
1125
+ this.log.warn(`Injecting fake attestation in checkpoint for slot ${slotNumber} at index ${targetIndex}`);
1126
+ unfreeze(attestations[targetIndex]).signature = generateRecoverableSignature();
1127
+ }
1006
1128
  }
1007
1129
  return new CommitteeAttestationsAndSigners(attestations);
1008
1130
  }
@@ -1011,14 +1133,25 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
1011
1133
  const shuffled = [
1012
1134
  ...attestations
1013
1135
  ];
1014
- const [i, j] = [
1015
- (proposerIndex + 1) % shuffled.length,
1016
- (proposerIndex + 2) % shuffled.length
1017
- ];
1018
- const valueI = shuffled[i];
1019
- const valueJ = shuffled[j];
1020
- shuffled[i] = valueJ;
1021
- shuffled[j] = valueI;
1136
+ // Find two non-proposer positions that both have non-empty signatures to swap.
1137
+ // This ensures the bitmap doesn't change, so the MaliciousCommitteeAttestationsAndSigners
1138
+ // signers array stays correctly aligned with L1's committee reconstruction.
1139
+ const swappable = [];
1140
+ for(let k = 0; k < shuffled.length; k++){
1141
+ if (!shuffled[k].signature.isEmpty() && k !== proposerIndex) {
1142
+ swappable.push(k);
1143
+ }
1144
+ }
1145
+ if (swappable.length >= 2) {
1146
+ const [i, j] = [
1147
+ swappable[0],
1148
+ swappable[1]
1149
+ ];
1150
+ [shuffled[i], shuffled[j]] = [
1151
+ shuffled[j],
1152
+ shuffled[i]
1153
+ ];
1154
+ }
1022
1155
  const signers = new CommitteeAttestationsAndSigners(attestations).getSigners();
1023
1156
  return new MaliciousCommitteeAttestationsAndSigners(shuffled, signers);
1024
1157
  }
@@ -1031,14 +1164,13 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
1031
1164
  const failedTxData = failedTxs.map((fail)=>fail.tx);
1032
1165
  const failedTxHashes = failedTxData.map((tx)=>tx.getTxHash());
1033
1166
  this.log.verbose(`Dropping failed txs ${failedTxHashes.join(', ')}`);
1034
- await this.p2pClient.deleteTxs(failedTxHashes);
1167
+ await this.p2pClient.handleFailedExecution(failedTxHashes);
1035
1168
  }
1036
1169
  /**
1037
1170
  * Adds the proposed block to the archiver so it's available via P2P.
1038
1171
  * Gossip doesn't echo messages back to the sender, so the proposer's archiver/world-state
1039
1172
  * would never receive its own block without this explicit sync.
1040
1173
  */ async syncProposedBlockToArchiver(block) {
1041
- // TODO(palla/mbps): Change default to false once block sync is stable.
1042
1174
  if (this.config.skipPushProposedBlocksToArchiver !== false) {
1043
1175
  this.log.warn(`Skipping push of proposed block ${block.number} to archiver`, {
1044
1176
  blockNumber: block.number,
@@ -1067,15 +1199,38 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
1067
1199
  slot: this.slot,
1068
1200
  feeAnalysisId: feeAnalysis?.id
1069
1201
  });
1070
- this.metrics.recordBlockProposalFailed('block_build_failed');
1202
+ this.metrics.recordCheckpointProposalFailed('block_build_failed');
1071
1203
  }
1072
1204
  this.publisher.clearPendingRequests();
1073
1205
  }
1206
+ /**
1207
+ * Helper to handle HA double-signing errors. Returns true if the error was handled (caller should yield).
1208
+ */ handleHASigningError(err, errorContext) {
1209
+ if (err instanceof DutyAlreadySignedError) {
1210
+ this.log.info(`${errorContext} for slot ${this.slot} already signed by another HA node, yielding`, {
1211
+ slot: this.slot,
1212
+ signedByNode: err.signedByNode
1213
+ });
1214
+ return true;
1215
+ }
1216
+ if (err instanceof SlashingProtectionError) {
1217
+ this.log.info(`${errorContext} for slot ${this.slot} blocked by slashing protection, yielding`, {
1218
+ slot: this.slot,
1219
+ existingMessageHash: err.existingMessageHash,
1220
+ attemptedMessageHash: err.attemptedMessageHash
1221
+ });
1222
+ return true;
1223
+ }
1224
+ return false;
1225
+ }
1074
1226
  /** Waits until a specific time within the current slot */ async waitUntilTimeInSlot(targetSecondsIntoSlot) {
1075
1227
  const slotStartTimestamp = this.getSlotStartBuildTimestamp();
1076
1228
  const targetTimestamp = slotStartTimestamp + targetSecondsIntoSlot;
1077
1229
  await sleepUntil(new Date(targetTimestamp * 1000), this.dateProvider.nowAsDate());
1078
1230
  }
1231
+ /** Waits the polling interval for transactions. Extracted for test overriding. */ async waitForTxsPollingInterval() {
1232
+ await sleep(TXS_POLLING_MS);
1233
+ }
1079
1234
  getSlotStartBuildTimestamp() {
1080
1235
  return getSlotStartBuildTimestamp(this.slot, this.l1Constants);
1081
1236
  }
@@ -21,7 +21,8 @@ export declare class CheckpointVoter {
21
21
  private readonly metrics;
22
22
  private readonly log;
23
23
  private slotTimestamp;
24
- private signer;
24
+ private governanceSigner;
25
+ private slashingSigner;
25
26
  constructor(slot: SlotNumber, publisher: SequencerPublisher, attestorAddress: EthAddress, validatorClient: ValidatorClient, slasherClient: SlasherClientInterface | undefined, l1Constants: SequencerRollupConstants, config: ResolvedSequencerConfig, metrics: SequencerMetrics, log: Logger);
26
27
  /**
27
28
  * Enqueues governance and slashing votes with the publisher.
@@ -31,4 +32,4 @@ export declare class CheckpointVoter {
31
32
  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