Skip to content

Commit

Permalink
maxbatchesforL1=0 -> disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Jul 23, 2024
1 parent b9e4e02 commit 037e705
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sequencesender/txbuilder/validium_cond_num_batches.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type NewSequenceConditionalNumBatches struct {
}

func (c *NewSequenceConditionalNumBatches) NewSequenceIfWorthToSend(ctx context.Context, txBuilder TxBuilder, sequenceBatches []seqsendertypes.Batch, senderAddress, l2Coinbase common.Address, batchNumber uint64) (seqsendertypes.Sequence, error) {
if len(sequenceBatches) >= int(c.maxBatchesForL1) {
if c.maxBatchesForL1 > 0 && len(sequenceBatches) >= int(c.maxBatchesForL1) {
log.Infof(
"[SeqSender] sequence should be sent to L1, because MaxBatchesForL1 (%d) has been reached",
c.maxBatchesForL1,
Expand Down
1 change: 1 addition & 0 deletions test/config/test.kurtosis_template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ WaitPeriodSendSequence = "15s"
LastBatchVirtualizationTimeMaxWaitPeriod = "10s"
L1BlockTimestampMargin = "30s"
MaxTxSizeForL1 = 131072
MaxBatchesForL1 = 2
L2Coinbase = "${zkevm_l2_sequencer_address}"
#PrivateKey = {Path = "../test/sequencer.keystore", Password = "testonly"}
PrivateKey = {Path = "/tmp/seq_sender/sequencer.keystore", Password = "${zkevm_l2_keystore_password}"}
Expand Down

0 comments on commit 037e705

Please sign in to comment.