@aztec/sequencer-client 0.0.1-commit.86469d5 → 0.0.1-commit.88c5703d4
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.
- package/dest/client/sequencer-client.d.ts +24 -7
- package/dest/client/sequencer-client.d.ts.map +1 -1
- package/dest/client/sequencer-client.js +101 -16
- package/dest/config.d.ts +25 -6
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +49 -28
- package/dest/global_variable_builder/global_builder.d.ts +2 -4
- package/dest/global_variable_builder/global_builder.d.ts.map +1 -1
- package/dest/global_variable_builder/global_builder.js +5 -4
- package/dest/publisher/config.d.ts +35 -17
- package/dest/publisher/config.d.ts.map +1 -1
- package/dest/publisher/config.js +106 -42
- package/dest/publisher/index.d.ts +2 -1
- package/dest/publisher/index.d.ts.map +1 -1
- package/dest/publisher/l1_tx_failed_store/factory.d.ts +11 -0
- package/dest/publisher/l1_tx_failed_store/factory.d.ts.map +1 -0
- package/dest/publisher/l1_tx_failed_store/factory.js +22 -0
- package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts +59 -0
- package/dest/publisher/l1_tx_failed_store/failed_tx_store.d.ts.map +1 -0
- package/dest/publisher/l1_tx_failed_store/failed_tx_store.js +1 -0
- package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts +15 -0
- package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.d.ts.map +1 -0
- package/dest/publisher/l1_tx_failed_store/file_store_failed_tx_store.js +34 -0
- package/dest/publisher/l1_tx_failed_store/index.d.ts +4 -0
- package/dest/publisher/l1_tx_failed_store/index.d.ts.map +1 -0
- package/dest/publisher/l1_tx_failed_store/index.js +2 -0
- package/dest/publisher/sequencer-publisher-factory.d.ts +11 -3
- package/dest/publisher/sequencer-publisher-factory.d.ts.map +1 -1
- package/dest/publisher/sequencer-publisher-factory.js +27 -2
- package/dest/publisher/sequencer-publisher.d.ts +26 -7
- package/dest/publisher/sequencer-publisher.d.ts.map +1 -1
- package/dest/publisher/sequencer-publisher.js +310 -31
- package/dest/sequencer/checkpoint_proposal_job.d.ts +4 -4
- package/dest/sequencer/checkpoint_proposal_job.d.ts.map +1 -1
- package/dest/sequencer/checkpoint_proposal_job.js +126 -74
- package/dest/sequencer/metrics.d.ts +17 -5
- package/dest/sequencer/metrics.d.ts.map +1 -1
- package/dest/sequencer/metrics.js +86 -15
- package/dest/sequencer/sequencer.d.ts +28 -13
- package/dest/sequencer/sequencer.d.ts.map +1 -1
- package/dest/sequencer/sequencer.js +41 -40
- package/dest/sequencer/timetable.d.ts +4 -6
- package/dest/sequencer/timetable.d.ts.map +1 -1
- package/dest/sequencer/timetable.js +7 -11
- package/dest/sequencer/types.d.ts +2 -2
- package/dest/sequencer/types.d.ts.map +1 -1
- package/dest/test/index.d.ts +3 -5
- package/dest/test/index.d.ts.map +1 -1
- package/dest/test/mock_checkpoint_builder.d.ts +14 -10
- package/dest/test/mock_checkpoint_builder.d.ts.map +1 -1
- package/dest/test/mock_checkpoint_builder.js +45 -34
- package/dest/test/utils.d.ts +3 -3
- package/dest/test/utils.d.ts.map +1 -1
- package/dest/test/utils.js +5 -4
- package/package.json +27 -28
- package/src/client/sequencer-client.ts +135 -18
- package/src/config.ts +64 -38
- package/src/global_variable_builder/global_builder.ts +4 -3
- package/src/publisher/config.ts +121 -43
- package/src/publisher/index.ts +3 -0
- package/src/publisher/l1_tx_failed_store/factory.ts +32 -0
- package/src/publisher/l1_tx_failed_store/failed_tx_store.ts +55 -0
- package/src/publisher/l1_tx_failed_store/file_store_failed_tx_store.ts +46 -0
- package/src/publisher/l1_tx_failed_store/index.ts +3 -0
- package/src/publisher/sequencer-publisher-factory.ts +38 -6
- package/src/publisher/sequencer-publisher.ts +311 -44
- package/src/sequencer/checkpoint_proposal_job.ts +173 -78
- package/src/sequencer/metrics.ts +92 -18
- package/src/sequencer/sequencer.ts +52 -46
- package/src/sequencer/timetable.ts +13 -12
- package/src/sequencer/types.ts +1 -1
- package/src/test/index.ts +2 -4
- package/src/test/mock_checkpoint_builder.ts +62 -48
- package/src/test/utils.ts +5 -2
|
@@ -436,22 +436,21 @@ 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 { NUM_CHECKPOINT_END_MARKER_FIELDS, getNumBlockEndBlobFields } from '@aztec/blob-lib/encoding';
|
|
440
|
-
import { BLOBS_PER_CHECKPOINT, FIELDS_PER_BLOB } from '@aztec/constants';
|
|
441
439
|
import { BlockNumber, IndexWithinCheckpoint } from '@aztec/foundation/branded-types';
|
|
442
440
|
import { randomInt } from '@aztec/foundation/crypto/random';
|
|
443
|
-
import {
|
|
441
|
+
import { flipSignature, generateRecoverableSignature, generateUnrecoverableSignature } from '@aztec/foundation/crypto/secp256k1-signer';
|
|
444
442
|
import { filter } from '@aztec/foundation/iterator';
|
|
445
443
|
import { createLogger } from '@aztec/foundation/log';
|
|
446
444
|
import { sleep, sleepUntil } from '@aztec/foundation/sleep';
|
|
447
445
|
import { Timer } from '@aztec/foundation/timer';
|
|
448
446
|
import { isErrorClass, unfreeze } from '@aztec/foundation/types';
|
|
449
447
|
import { CommitteeAttestationsAndSigners, MaliciousCommitteeAttestationsAndSigners } from '@aztec/stdlib/block';
|
|
448
|
+
import { validateCheckpoint } from '@aztec/stdlib/checkpoint';
|
|
450
449
|
import { getSlotStartBuildTimestamp } from '@aztec/stdlib/epoch-helpers';
|
|
451
450
|
import { Gas } from '@aztec/stdlib/gas';
|
|
452
|
-
import {
|
|
451
|
+
import { InsufficientValidTxsError } from '@aztec/stdlib/interfaces/server';
|
|
453
452
|
import { computeInHashFromL1ToL2Messages } from '@aztec/stdlib/messaging';
|
|
454
|
-
import { orderAttestations } from '@aztec/stdlib/p2p';
|
|
453
|
+
import { orderAttestations, trimAttestations } from '@aztec/stdlib/p2p';
|
|
455
454
|
import { AttestationTimeoutError } from '@aztec/stdlib/validators';
|
|
456
455
|
import { Attributes, trackSpan } from '@aztec/telemetry-client';
|
|
457
456
|
import { DutyAlreadySignedError, SlashingProtectionError } from '@aztec/validator-ha-signer/errors';
|
|
@@ -590,7 +589,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
590
589
|
// Wait until the voting promises have resolved, so all requests are enqueued (not sent)
|
|
591
590
|
await Promise.all(votesPromises);
|
|
592
591
|
if (checkpoint) {
|
|
593
|
-
this.metrics.
|
|
592
|
+
this.metrics.recordCheckpointProposalSuccess();
|
|
594
593
|
}
|
|
595
594
|
// Do not post anything to L1 if we are fishermen, but do perform L1 fee analysis
|
|
596
595
|
if (this.config.fishermanMode) {
|
|
@@ -640,13 +639,14 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
640
639
|
const l1ToL2Messages = await this.l1ToL2MessageSource.getL1ToL2Messages(this.checkpointNumber);
|
|
641
640
|
const inHash = computeInHashFromL1ToL2Messages(l1ToL2Messages);
|
|
642
641
|
// Collect the out hashes of all the checkpoints before this one in the same epoch
|
|
643
|
-
const
|
|
644
|
-
|
|
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();
|
|
645
645
|
const fork = _ts_add_disposable_resource(env, await this.worldState.fork(this.syncedToBlockNumber, {
|
|
646
646
|
closeDelayMs: 12_000
|
|
647
|
-
}),
|
|
647
|
+
}), true);
|
|
648
648
|
// Create checkpoint builder for the entire slot
|
|
649
|
-
const checkpointBuilder = await this.checkpointsBuilder.startCheckpoint(this.checkpointNumber, checkpointGlobalVariables, l1ToL2Messages, previousCheckpointOutHashes, fork, this.log.getBindings());
|
|
649
|
+
const checkpointBuilder = await this.checkpointsBuilder.startCheckpoint(this.checkpointNumber, checkpointGlobalVariables, feeAssetPriceModifier, l1ToL2Messages, previousCheckpointOutHashes, fork, this.log.getBindings());
|
|
650
650
|
// Options for the validator client when creating block and checkpoint proposals
|
|
651
651
|
const blockProposalOptions = {
|
|
652
652
|
publishFullTxs: !!this.config.publishTxsWithProposals,
|
|
@@ -658,6 +658,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
658
658
|
};
|
|
659
659
|
let blocksInCheckpoint = [];
|
|
660
660
|
let blockPendingBroadcast = undefined;
|
|
661
|
+
const checkpointBuildTimer = new Timer();
|
|
661
662
|
try {
|
|
662
663
|
// Main loop: build blocks for the checkpoint
|
|
663
664
|
const result = await this.buildBlocksForCheckpoint(checkpointBuilder, checkpointGlobalVariables.timestamp, inHash, blockProposalOptions);
|
|
@@ -681,10 +682,36 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
681
682
|
});
|
|
682
683
|
return undefined;
|
|
683
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
|
+
}
|
|
684
694
|
// Assemble and broadcast the checkpoint proposal, including the last block that was not
|
|
685
695
|
// broadcasted yet, and wait to collect the committee attestations.
|
|
686
696
|
this.setStateFn(SequencerState.ASSEMBLING_CHECKPOINT, this.slot);
|
|
687
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()));
|
|
688
715
|
// Do not collect attestations nor publish to L1 in fisherman mode
|
|
689
716
|
if (this.config.fishermanMode) {
|
|
690
717
|
this.log.info(`Built checkpoint for slot ${this.slot} with ${blocksInCheckpoint.length} blocks. ` + `Skipping proposal in fisherman mode.`, {
|
|
@@ -702,7 +729,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
702
729
|
txs: blockPendingBroadcast.txs
|
|
703
730
|
};
|
|
704
731
|
// Create the checkpoint proposal and broadcast it
|
|
705
|
-
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);
|
|
706
733
|
const blockProposedAt = this.dateProvider.now();
|
|
707
734
|
await this.p2pClient.broadcastCheckpointProposal(proposal);
|
|
708
735
|
this.setStateFn(SequencerState.COLLECTING_ATTESTATIONS, this.slot);
|
|
@@ -727,6 +754,14 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
727
754
|
const aztecSlotDuration = this.l1Constants.slotDuration;
|
|
728
755
|
const slotStartBuildTimestamp = this.getSlotStartBuildTimestamp();
|
|
729
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
|
+
}
|
|
730
765
|
await this.publisher.enqueueProposeCheckpoint(checkpoint, attestations, attestationsSignature, {
|
|
731
766
|
txTimeoutAt,
|
|
732
767
|
forcePendingCheckpointNumber: this.invalidateCheckpoint?.forcePendingCheckpointNumber
|
|
@@ -736,7 +771,8 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
736
771
|
env.error = e;
|
|
737
772
|
env.hasError = true;
|
|
738
773
|
} finally{
|
|
739
|
-
_ts_dispose_resources(env);
|
|
774
|
+
const result = _ts_dispose_resources(env);
|
|
775
|
+
if (result) await result;
|
|
740
776
|
}
|
|
741
777
|
} catch (err) {
|
|
742
778
|
if (err && (err instanceof DutyAlreadySignedError || err instanceof SlashingProtectionError)) {
|
|
@@ -753,8 +789,6 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
753
789
|
const blocksInCheckpoint = [];
|
|
754
790
|
const txHashesAlreadyIncluded = new Set();
|
|
755
791
|
const initialBlockNumber = BlockNumber(this.syncedToBlockNumber + 1);
|
|
756
|
-
// Remaining blob fields available for blocks (checkpoint end marker already subtracted)
|
|
757
|
-
let remainingBlobFields = BLOBS_PER_CHECKPOINT * FIELDS_PER_BLOB - NUM_CHECKPOINT_END_MARKER_FIELDS;
|
|
758
792
|
// Last block in the checkpoint will usually be flagged as pending broadcast, so we send it along with the checkpoint proposal
|
|
759
793
|
let blockPendingBroadcast = undefined;
|
|
760
794
|
while(true){
|
|
@@ -780,8 +814,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
780
814
|
buildDeadline: timingInfo.deadline ? new Date((this.getSlotStartBuildTimestamp() + timingInfo.deadline) * 1000) : undefined,
|
|
781
815
|
blockNumber,
|
|
782
816
|
indexWithinCheckpoint,
|
|
783
|
-
txHashesAlreadyIncluded
|
|
784
|
-
remainingBlobFields
|
|
817
|
+
txHashesAlreadyIncluded
|
|
785
818
|
});
|
|
786
819
|
// TODO(palla/mbps): Review these conditions. We may want to keep trying in some scenarios.
|
|
787
820
|
if (!buildResult && timingInfo.isLastBlock) {
|
|
@@ -803,20 +836,12 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
803
836
|
}
|
|
804
837
|
break;
|
|
805
838
|
}
|
|
806
|
-
const { block, usedTxs
|
|
839
|
+
const { block, usedTxs } = buildResult;
|
|
807
840
|
blocksInCheckpoint.push(block);
|
|
808
|
-
// Update remaining blob fields for the next block
|
|
809
|
-
remainingBlobFields = newRemainingBlobFields;
|
|
810
841
|
// Sync the proposed block to the archiver to make it available
|
|
811
|
-
//
|
|
812
|
-
//
|
|
813
|
-
|
|
814
|
-
this.syncProposedBlockToArchiver(block).catch((err)=>{
|
|
815
|
-
this.log.error(`Failed to sync proposed block ${block.number} to archiver`, {
|
|
816
|
-
blockNumber: block.number,
|
|
817
|
-
err
|
|
818
|
-
});
|
|
819
|
-
});
|
|
842
|
+
// We wait for the sync to succeed, as this helps catch consistency errors, even if it means we lose some time for block-building
|
|
843
|
+
// If this throws, we abort the entire checkpoint
|
|
844
|
+
await this.syncProposedBlockToArchiver(block);
|
|
820
845
|
usedTxs.forEach((tx)=>txHashesAlreadyIncluded.add(tx.txHash.toString()));
|
|
821
846
|
// If this is the last block, exit the loop now so we start collecting attestations
|
|
822
847
|
if (timingInfo.isLastBlock) {
|
|
@@ -857,15 +882,14 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
857
882
|
await this.waitUntilTimeInSlot(nextSubslotStart);
|
|
858
883
|
}
|
|
859
884
|
/** Builds a single block. Called from the main block building loop. */ async buildSingleBlock(checkpointBuilder, opts) {
|
|
860
|
-
const { blockTimestamp, forceCreate, blockNumber, indexWithinCheckpoint, buildDeadline, txHashesAlreadyIncluded
|
|
885
|
+
const { blockTimestamp, forceCreate, blockNumber, indexWithinCheckpoint, buildDeadline, txHashesAlreadyIncluded } = opts;
|
|
861
886
|
this.log.verbose(`Preparing block ${blockNumber} index ${indexWithinCheckpoint} at checkpoint ${this.checkpointNumber} for slot ${this.slot}`, {
|
|
862
887
|
...checkpointBuilder.getConstantData(),
|
|
863
888
|
...opts
|
|
864
889
|
});
|
|
865
890
|
try {
|
|
866
891
|
// Wait until we have enough txs to build the block
|
|
867
|
-
const minTxs = this.
|
|
868
|
-
const { availableTxs, canStartBuilding } = await this.waitForMinTxs(opts);
|
|
892
|
+
const { availableTxs, canStartBuilding, minTxs } = await this.waitForMinTxs(opts);
|
|
869
893
|
if (!canStartBuilding) {
|
|
870
894
|
this.log.warn(`Not enough txs to build block ${blockNumber} at index ${indexWithinCheckpoint} in slot ${this.slot} (got ${availableTxs} txs but needs ${minTxs})`, {
|
|
871
895
|
blockNumber,
|
|
@@ -882,39 +906,37 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
882
906
|
}
|
|
883
907
|
// Create iterator to pending txs. We filter out txs already included in previous blocks in the checkpoint
|
|
884
908
|
// just in case p2p failed to sync the provisional block and didn't get to remove those txs from the mempool yet.
|
|
885
|
-
const pendingTxs = filter(this.p2pClient.
|
|
909
|
+
const pendingTxs = filter(this.p2pClient.iterateEligiblePendingTxs(), (tx)=>!txHashesAlreadyIncluded.has(tx.txHash.toString()));
|
|
886
910
|
this.log.debug(`Building block ${blockNumber} at index ${indexWithinCheckpoint} for slot ${this.slot} with ${availableTxs} available txs`, {
|
|
887
911
|
slot: this.slot,
|
|
888
912
|
blockNumber,
|
|
889
913
|
indexWithinCheckpoint
|
|
890
914
|
});
|
|
891
915
|
this.setStateFn(SequencerState.CREATING_BLOCK, this.slot);
|
|
892
|
-
//
|
|
893
|
-
|
|
894
|
-
|
|
916
|
+
// Per-block limits derived at startup by computeBlockLimits(), further capped
|
|
917
|
+
// by remaining checkpoint-level budgets inside CheckpointBuilder before each block is built.
|
|
918
|
+
// minValidTxs is passed into the builder so it can reject the block *before* updating state.
|
|
919
|
+
const minValidTxs = forceCreate ? 0 : this.config.minValidTxsPerBlock ?? minTxs;
|
|
895
920
|
const blockBuilderOptions = {
|
|
896
921
|
maxTransactions: this.config.maxTxsPerBlock,
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
922
|
+
maxBlockGas: this.config.maxL2BlockGas !== undefined || this.config.maxDABlockGas !== undefined ? new Gas(this.config.maxDABlockGas ?? Infinity, this.config.maxL2BlockGas ?? Infinity) : undefined,
|
|
923
|
+
deadline: buildDeadline,
|
|
924
|
+
isBuildingProposal: true,
|
|
925
|
+
minValidTxs
|
|
901
926
|
};
|
|
902
|
-
// Actually build the block by executing txs
|
|
927
|
+
// Actually build the block by executing txs. The builder throws InsufficientValidTxsError
|
|
928
|
+
// if the number of successfully processed txs is below minValidTxs, ensuring state is not
|
|
929
|
+
// updated for blocks that will be discarded.
|
|
903
930
|
const buildResult = await this.buildSingleBlockWithCheckpointBuilder(checkpointBuilder, pendingTxs, blockNumber, blockTimestamp, blockBuilderOptions);
|
|
904
931
|
// If any txs failed during execution, drop them from the mempool so we don't pick them up again
|
|
905
932
|
await this.dropFailedTxsFromP2P(buildResult.failedTxs);
|
|
906
|
-
|
|
907
|
-
// too long, then we may not get to minTxsPerBlock after executing public functions.
|
|
908
|
-
const minValidTxs = this.config.minValidTxsPerBlock ?? minTxs;
|
|
909
|
-
const numTxs = buildResult.status === 'no-valid-txs' ? 0 : buildResult.numTxs;
|
|
910
|
-
if (buildResult.status === 'no-valid-txs' || !forceCreate && numTxs < minValidTxs) {
|
|
933
|
+
if (buildResult.status === 'insufficient-valid-txs') {
|
|
911
934
|
this.log.warn(`Block ${blockNumber} at index ${indexWithinCheckpoint} on slot ${this.slot} has too few valid txs to be proposed`, {
|
|
912
935
|
slot: this.slot,
|
|
913
936
|
blockNumber,
|
|
914
|
-
numTxs,
|
|
937
|
+
numTxs: buildResult.processedCount,
|
|
915
938
|
indexWithinCheckpoint,
|
|
916
|
-
minValidTxs
|
|
917
|
-
buildResult: buildResult.status
|
|
939
|
+
minValidTxs
|
|
918
940
|
});
|
|
919
941
|
this.eventEmitter.emit('block-build-failed', {
|
|
920
942
|
reason: `Insufficient valid txs`,
|
|
@@ -924,7 +946,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
924
946
|
return undefined;
|
|
925
947
|
}
|
|
926
948
|
// Block creation succeeded, emit stats and metrics
|
|
927
|
-
const {
|
|
949
|
+
const { block, publicProcessorDuration, usedTxs, blockBuildDuration, numTxs } = buildResult;
|
|
928
950
|
const blockStats = {
|
|
929
951
|
eventName: 'l2-block-built',
|
|
930
952
|
duration: blockBuildDuration,
|
|
@@ -933,7 +955,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
933
955
|
};
|
|
934
956
|
const blockHash = await block.hash();
|
|
935
957
|
const txHashes = block.body.txEffects.map((tx)=>tx.txHash);
|
|
936
|
-
const manaPerSec =
|
|
958
|
+
const manaPerSec = block.header.totalManaUsed.toNumberUnsafe() / (blockBuildDuration / 1000);
|
|
937
959
|
this.log.info(`Built block ${block.number} at checkpoint ${this.checkpointNumber} for slot ${this.slot} with ${numTxs} txs`, {
|
|
938
960
|
blockHash,
|
|
939
961
|
txHashes,
|
|
@@ -944,11 +966,10 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
944
966
|
blockNumber: block.number,
|
|
945
967
|
slot: this.slot
|
|
946
968
|
});
|
|
947
|
-
this.metrics.recordBuiltBlock(blockBuildDuration,
|
|
969
|
+
this.metrics.recordBuiltBlock(blockBuildDuration, block.header.totalManaUsed.toNumberUnsafe());
|
|
948
970
|
return {
|
|
949
971
|
block,
|
|
950
|
-
usedTxs
|
|
951
|
-
remainingBlobFields: maxBlobFieldsForTxs - usedTxBlobFields
|
|
972
|
+
usedTxs
|
|
952
973
|
};
|
|
953
974
|
} catch (err) {
|
|
954
975
|
this.eventEmitter.emit('block-build-failed', {
|
|
@@ -966,7 +987,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
966
987
|
};
|
|
967
988
|
}
|
|
968
989
|
}
|
|
969
|
-
/** Uses the checkpoint builder to build a block, catching
|
|
990
|
+
/** Uses the checkpoint builder to build a block, catching InsufficientValidTxsError. */ async buildSingleBlockWithCheckpointBuilder(checkpointBuilder, pendingTxs, blockNumber, blockTimestamp, blockBuilderOptions) {
|
|
970
991
|
try {
|
|
971
992
|
const workTimer = new Timer();
|
|
972
993
|
const result = await checkpointBuilder.buildBlock(pendingTxs, blockNumber, blockTimestamp, blockBuilderOptions);
|
|
@@ -977,10 +998,11 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
977
998
|
status: 'success'
|
|
978
999
|
};
|
|
979
1000
|
} catch (err) {
|
|
980
|
-
if (isErrorClass(err,
|
|
1001
|
+
if (isErrorClass(err, InsufficientValidTxsError)) {
|
|
981
1002
|
return {
|
|
982
1003
|
failedTxs: err.failedTxs,
|
|
983
|
-
|
|
1004
|
+
processedCount: err.processedCount,
|
|
1005
|
+
status: 'insufficient-valid-txs'
|
|
984
1006
|
};
|
|
985
1007
|
}
|
|
986
1008
|
throw err;
|
|
@@ -999,7 +1021,8 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
999
1021
|
if (startBuildingDeadline === undefined || now >= startBuildingDeadline) {
|
|
1000
1022
|
return {
|
|
1001
1023
|
canStartBuilding: false,
|
|
1002
|
-
availableTxs
|
|
1024
|
+
availableTxs,
|
|
1025
|
+
minTxs
|
|
1003
1026
|
};
|
|
1004
1027
|
}
|
|
1005
1028
|
// Wait a bit before checking again
|
|
@@ -1009,12 +1032,13 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1009
1032
|
slot: this.slot,
|
|
1010
1033
|
indexWithinCheckpoint
|
|
1011
1034
|
});
|
|
1012
|
-
await
|
|
1035
|
+
await this.waitForTxsPollingInterval();
|
|
1013
1036
|
availableTxs = await this.p2pClient.getPendingTxCount();
|
|
1014
1037
|
}
|
|
1015
1038
|
return {
|
|
1016
1039
|
canStartBuilding: true,
|
|
1017
|
-
availableTxs
|
|
1040
|
+
availableTxs,
|
|
1041
|
+
minTxs
|
|
1018
1042
|
};
|
|
1019
1043
|
}
|
|
1020
1044
|
/**
|
|
@@ -1051,10 +1075,16 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1051
1075
|
try {
|
|
1052
1076
|
const attestations = await this.validatorClient.collectAttestations(proposal, numberOfRequiredAttestations, attestationDeadline);
|
|
1053
1077
|
collectedAttestationsCount = attestations.length;
|
|
1078
|
+
// Trim attestations to minimum required to save L1 calldata gas
|
|
1079
|
+
const localAddresses = this.validatorClient.getValidatorAddresses();
|
|
1080
|
+
const trimmed = trimAttestations(attestations, numberOfRequiredAttestations, this.attestorAddress, localAddresses);
|
|
1081
|
+
if (trimmed.length < attestations.length) {
|
|
1082
|
+
this.log.debug(`Trimmed attestations from ${attestations.length} to ${trimmed.length} for L1 submission`);
|
|
1083
|
+
}
|
|
1054
1084
|
// Rollup contract requires that the signatures are provided in the order of the committee
|
|
1055
|
-
const sorted = orderAttestations(
|
|
1085
|
+
const sorted = orderAttestations(trimmed, committee);
|
|
1056
1086
|
// Manipulate the attestations if we've been configured to do so
|
|
1057
|
-
if (this.config.injectFakeAttestation || this.config.shuffleAttestationOrdering) {
|
|
1087
|
+
if (this.config.injectFakeAttestation || this.config.injectHighSValueAttestation || this.config.injectUnrecoverableSignatureAttestation || this.config.shuffleAttestationOrdering) {
|
|
1058
1088
|
return this.manipulateAttestations(proposal.slotNumber, epoch, seed, committee, sorted);
|
|
1059
1089
|
}
|
|
1060
1090
|
return new CommitteeAttestationsAndSigners(sorted);
|
|
@@ -1071,7 +1101,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1071
1101
|
// Compute the proposer index in the committee, since we dont want to tweak it.
|
|
1072
1102
|
// Otherwise, the L1 rollup contract will reject the block outright.
|
|
1073
1103
|
const proposerIndex = Number(this.epochCache.computeProposerIndex(slotNumber, epoch, seed, BigInt(committee.length)));
|
|
1074
|
-
if (this.config.injectFakeAttestation) {
|
|
1104
|
+
if (this.config.injectFakeAttestation || this.config.injectHighSValueAttestation || this.config.injectUnrecoverableSignatureAttestation) {
|
|
1075
1105
|
// Find non-empty attestations that are not from the proposer
|
|
1076
1106
|
const nonProposerIndices = [];
|
|
1077
1107
|
for(let i = 0; i < attestations.length; i++){
|
|
@@ -1081,8 +1111,16 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1081
1111
|
}
|
|
1082
1112
|
if (nonProposerIndices.length > 0) {
|
|
1083
1113
|
const targetIndex = nonProposerIndices[randomInt(nonProposerIndices.length)];
|
|
1084
|
-
this.
|
|
1085
|
-
|
|
1114
|
+
if (this.config.injectHighSValueAttestation) {
|
|
1115
|
+
this.log.warn(`Injecting high-s value attestation in checkpoint for slot ${slotNumber} at index ${targetIndex}`);
|
|
1116
|
+
unfreeze(attestations[targetIndex]).signature = flipSignature(attestations[targetIndex].signature);
|
|
1117
|
+
} else if (this.config.injectUnrecoverableSignatureAttestation) {
|
|
1118
|
+
this.log.warn(`Injecting unrecoverable signature attestation in checkpoint for slot ${slotNumber} at index ${targetIndex}`);
|
|
1119
|
+
unfreeze(attestations[targetIndex]).signature = generateUnrecoverableSignature();
|
|
1120
|
+
} else {
|
|
1121
|
+
this.log.warn(`Injecting fake attestation in checkpoint for slot ${slotNumber} at index ${targetIndex}`);
|
|
1122
|
+
unfreeze(attestations[targetIndex]).signature = generateRecoverableSignature();
|
|
1123
|
+
}
|
|
1086
1124
|
}
|
|
1087
1125
|
return new CommitteeAttestationsAndSigners(attestations);
|
|
1088
1126
|
}
|
|
@@ -1091,14 +1129,25 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1091
1129
|
const shuffled = [
|
|
1092
1130
|
...attestations
|
|
1093
1131
|
];
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
];
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1132
|
+
// Find two non-proposer positions that both have non-empty signatures to swap.
|
|
1133
|
+
// This ensures the bitmap doesn't change, so the MaliciousCommitteeAttestationsAndSigners
|
|
1134
|
+
// signers array stays correctly aligned with L1's committee reconstruction.
|
|
1135
|
+
const swappable = [];
|
|
1136
|
+
for(let k = 0; k < shuffled.length; k++){
|
|
1137
|
+
if (!shuffled[k].signature.isEmpty() && k !== proposerIndex) {
|
|
1138
|
+
swappable.push(k);
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
if (swappable.length >= 2) {
|
|
1142
|
+
const [i, j] = [
|
|
1143
|
+
swappable[0],
|
|
1144
|
+
swappable[1]
|
|
1145
|
+
];
|
|
1146
|
+
[shuffled[i], shuffled[j]] = [
|
|
1147
|
+
shuffled[j],
|
|
1148
|
+
shuffled[i]
|
|
1149
|
+
];
|
|
1150
|
+
}
|
|
1102
1151
|
const signers = new CommitteeAttestationsAndSigners(attestations).getSigners();
|
|
1103
1152
|
return new MaliciousCommitteeAttestationsAndSigners(shuffled, signers);
|
|
1104
1153
|
}
|
|
@@ -1111,7 +1160,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1111
1160
|
const failedTxData = failedTxs.map((fail)=>fail.tx);
|
|
1112
1161
|
const failedTxHashes = failedTxData.map((tx)=>tx.getTxHash());
|
|
1113
1162
|
this.log.verbose(`Dropping failed txs ${failedTxHashes.join(', ')}`);
|
|
1114
|
-
await this.p2pClient.
|
|
1163
|
+
await this.p2pClient.handleFailedExecution(failedTxHashes);
|
|
1115
1164
|
}
|
|
1116
1165
|
/**
|
|
1117
1166
|
* Adds the proposed block to the archiver so it's available via P2P.
|
|
@@ -1146,7 +1195,7 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1146
1195
|
slot: this.slot,
|
|
1147
1196
|
feeAnalysisId: feeAnalysis?.id
|
|
1148
1197
|
});
|
|
1149
|
-
this.metrics.
|
|
1198
|
+
this.metrics.recordCheckpointProposalFailed('block_build_failed');
|
|
1150
1199
|
}
|
|
1151
1200
|
this.publisher.clearPendingRequests();
|
|
1152
1201
|
}
|
|
@@ -1175,6 +1224,9 @@ _dec = trackSpan('CheckpointProposalJob.execute'), _dec1 = trackSpan('Checkpoint
|
|
|
1175
1224
|
const targetTimestamp = slotStartTimestamp + targetSecondsIntoSlot;
|
|
1176
1225
|
await sleepUntil(new Date(targetTimestamp * 1000), this.dateProvider.nowAsDate());
|
|
1177
1226
|
}
|
|
1227
|
+
/** Waits the polling interval for transactions. Extracted for test overriding. */ async waitForTxsPollingInterval() {
|
|
1228
|
+
await sleep(TXS_POLLING_MS);
|
|
1229
|
+
}
|
|
1178
1230
|
getSlotStartBuildTimestamp() {
|
|
1179
1231
|
return getSlotStartBuildTimestamp(this.slot, this.l1Constants);
|
|
1180
1232
|
}
|
|
@@ -21,15 +21,24 @@ export declare class SequencerMetrics {
|
|
|
21
21
|
private slots;
|
|
22
22
|
private filledSlots;
|
|
23
23
|
private blockProposalFailed;
|
|
24
|
-
private
|
|
25
|
-
private
|
|
24
|
+
private checkpointProposalSuccess;
|
|
25
|
+
private checkpointPrecheckFailed;
|
|
26
|
+
private checkpointProposalFailed;
|
|
26
27
|
private checkpointSuccess;
|
|
27
28
|
private slashingAttempts;
|
|
28
29
|
private checkpointAttestationDelay;
|
|
30
|
+
private checkpointBuildDuration;
|
|
31
|
+
private checkpointBlockCount;
|
|
32
|
+
private checkpointTxCount;
|
|
33
|
+
private checkpointTotalMana;
|
|
29
34
|
private fishermanWouldBeIncluded;
|
|
30
35
|
private fishermanTimeBeforeBlock;
|
|
31
36
|
private fishermanPendingBlobTxCount;
|
|
32
37
|
private fishermanIncludedBlobTxCount;
|
|
38
|
+
private fishermanPendingBlobCount;
|
|
39
|
+
private fishermanIncludedBlobCount;
|
|
40
|
+
private fishermanBlockBlobsFull;
|
|
41
|
+
private fishermanMaxBlobCapacity;
|
|
33
42
|
private fishermanCalculatedPriorityFee;
|
|
34
43
|
private fishermanPriorityFeeDelta;
|
|
35
44
|
private fishermanEstimatedCost;
|
|
@@ -48,8 +57,11 @@ export declare class SequencerMetrics {
|
|
|
48
57
|
incFilledSlot(proposer: string, coinbase: Hex | EthAddress | undefined): Promise<void>;
|
|
49
58
|
recordCheckpointSuccess(): void;
|
|
50
59
|
recordBlockProposalFailed(reason?: string): void;
|
|
51
|
-
|
|
52
|
-
|
|
60
|
+
recordCheckpointProposalSuccess(): void;
|
|
61
|
+
recordCheckpointPrecheckFailed(checkType: 'slot_already_taken' | 'rollup_contract_check_failed' | 'slot_mismatch' | 'block_number_mismatch'): void;
|
|
62
|
+
recordCheckpointProposalFailed(reason?: string): void;
|
|
63
|
+
/** Records aggregate metrics for a completed checkpoint build. */
|
|
64
|
+
recordCheckpointBuild(durationMs: number, blockCount: number, txCount: number, totalMana: number): void;
|
|
53
65
|
recordSlashingAttempt(actionCount: number): void;
|
|
54
66
|
/**
|
|
55
67
|
* Records metrics for a completed fisherman fee analysis
|
|
@@ -57,4 +69,4 @@ export declare class SequencerMetrics {
|
|
|
57
69
|
*/
|
|
58
70
|
recordFishermanFeeAnalysis(analysis: L1FeeAnalysisResult): void;
|
|
59
71
|
}
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0cmljcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlcXVlbmNlci9tZXRyaWNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUN2RCxPQUFPLEtBQUssRUFBRSxjQUFjLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNoRSxPQUFPLEtBQUssRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzNFLE9BQU8sS0FBSyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQ2xFLE9BQU8sRUFNTCxLQUFLLGVBQWUsRUFDcEIsS0FBSyxNQUFNLEVBR1osTUFBTSx5QkFBeUIsQ0FBQztBQUVqQyxPQUFPLEVBQUUsS0FB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