Skip to content

Commit 2bef4e4

Browse files
committed
address review comments
1 parent 95109dd commit 2bef4e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rollup/internal/controller/watcher/bundle_proposer_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func testBundleProposerLimitsCodecV7(t *testing.T) {
9999
}, encoding.CodecV7, chainConfig, db, nil)
100100

101101
bap := NewBatchProposer(context.Background(), &config.BatchProposerConfig{
102+
MaxChunksPerBatch: math.MaxInt32,
102103
BatchTimeoutSec: 0,
103104
MaxUncompressedBatchBytesSize: math.MaxUint64,
104105
}, encoding.CodecV7, chainConfig, db, false /* rollup mode */, nil)

rollup/internal/controller/watcher/chunk_proposer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (p *ChunkProposer) ProposeChunk() error {
233233

234234
// select blocks without a hard limit on count in practice (use a large value)
235235
// The actual limits will be enforced by gas, timeout, and blob size constraints
236-
blocks, err := p.l2BlockOrm.GetL2BlocksGEHeight(p.ctx, unchunkedBlockHeight, 100000)
236+
blocks, err := p.l2BlockOrm.GetL2BlocksGEHeight(p.ctx, unchunkedBlockHeight, 1000)
237237
if err != nil {
238238
return err
239239
}

0 commit comments

Comments
 (0)