@@ -89,11 +89,26 @@ func testChunkProposerLimitsCodecV7(t *testing.T) {
8989 _ , err = chunkOrm .InsertChunk (context .Background (), & encoding.Chunk {Blocks : []* encoding.Block {{Header : & gethTypes.Header {Number : big .NewInt (0 )}}}}, encoding .CodecV0 , utils.ChunkMetrics {})
9090 assert .NoError (t , err )
9191
92+ // Initialize the chunk proposer.
93+ chainConfig := & params.ChainConfig {
94+ LondonBlock : big .NewInt (0 ),
95+ BernoulliBlock : big .NewInt (0 ),
96+ CurieBlock : big .NewInt (0 ),
97+ DarwinTime : new (uint64 ),
98+ DarwinV2Time : new (uint64 ),
99+ EuclidTime : new (uint64 ),
100+ EuclidV2Time : new (uint64 ),
101+ FeynmanTime : new (uint64 ),
102+ GalileoTime : tt .GalileoTime ,
103+ }
104+
92105 cp := NewChunkProposer (context .Background (), & config.ChunkProposerConfig {
93106 MaxL2GasPerChunk : tt .maxL2Gas ,
94107 ChunkTimeoutSec : tt .chunkTimeoutSec ,
95108 MaxUncompressedBatchBytesSize : math .MaxUint64 ,
96- }, encoding .CodecV7 , & params.ChainConfig {LondonBlock : big .NewInt (0 ), BernoulliBlock : big .NewInt (0 ), CurieBlock : big .NewInt (0 ), DarwinTime : new (uint64 ), DarwinV2Time : new (uint64 ), EuclidTime : new (uint64 ), EuclidV2Time : new (uint64 ), FeynmanTime : new (uint64 ), GalileoTime : tt .GalileoTime }, db , nil )
109+ }, encoding .CodecV7 , chainConfig , db , nil )
110+
111+ // Run one round of chunk proposing.
97112 cp .TryProposeChunk ()
98113
99114 chunks , err := chunkOrm .GetChunksGEIndex (context .Background (), 1 , 0 )
0 commit comments