Skip to content

Commit 1af01ea

Browse files
ajsuttonspacesailor24
authored andcommitted
op-e2e: Re-enable large preimage e2e test (#9346)
* Reduce the min size for large preimages in devnet to make it easier to reach the limit. * Provide a buffer between target and max batch size to avoid the batcher splitting the large tx across multiple smaller frames.
1 parent ebc5e46 commit 1af01ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

op-e2e/faultproofs/util.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ type faultDisputeConfigOpts func(cfg *op_e2e.SystemConfig)
1212

1313
func withBatcherStopped() faultDisputeConfigOpts {
1414
return func(cfg *op_e2e.SystemConfig) {
15-
cfg.DisableBatcher = true
15+
maxTxDataSize := uint64(131072) // As per the Ethereum spec.
16+
// Allow the batcher to produce really huge calldata transactions.
17+
// Make the max deliberately bigger than the target but still with some padding below the actual limit
18+
cfg.BatcherTargetL1TxSizeBytes = maxTxDataSize - 5000
19+
cfg.BatcherMaxL1TxSizeBytes = maxTxDataSize - 1000
1620
}
1721
}
1822

0 commit comments

Comments
 (0)