@@ -296,6 +296,7 @@ func testGenerateBlockWithL1Msg(t *testing.T, isClique bool) {
296
296
NumL1MessagesPerBlock : 1 ,
297
297
}
298
298
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
299
+ chainConfig .Scroll .UseZktrie = true
299
300
300
301
chainConfig .LondonBlock = big .NewInt (0 )
301
302
w , b := newTestWorker (t , chainConfig , engine , db , 0 )
@@ -344,6 +345,7 @@ func TestAcceptableTxlimit(t *testing.T) {
344
345
chainConfig = params .AllCliqueProtocolChanges
345
346
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 }
346
347
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
348
+ chainConfig .Scroll .UseZktrie = true
347
349
engine = clique .New (chainConfig .Clique , db )
348
350
349
351
// Set maxTxPerBlock = 4, which >= non-l1msg + non-skipped l1msg txs
@@ -404,6 +406,7 @@ func TestUnacceptableTxlimit(t *testing.T) {
404
406
chainConfig = params .AllCliqueProtocolChanges
405
407
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 }
406
408
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
409
+ chainConfig .Scroll .UseZktrie = true
407
410
engine = clique .New (chainConfig .Clique , db )
408
411
409
412
// Set maxTxPerBlock = 3, which < non-l1msg + l1msg txs
@@ -463,6 +466,7 @@ func TestL1MsgCorrectOrder(t *testing.T) {
463
466
chainConfig = params .AllCliqueProtocolChanges
464
467
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 }
465
468
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
469
+ chainConfig .Scroll .UseZktrie = true
466
470
engine = clique .New (chainConfig .Clique , db )
467
471
468
472
maxTxPerBlock := 4
@@ -525,6 +529,7 @@ func l1MessageTest(t *testing.T, msgs []types.L1MessageTx, withL2Tx bool, callba
525
529
526
530
chainConfig = params .AllCliqueProtocolChanges
527
531
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 }
532
+ chainConfig .Scroll .UseZktrie = true
528
533
engine = clique .New (chainConfig .Clique , db )
529
534
maxTxPerBlock := 4
530
535
chainConfig .Scroll .MaxTxPerBlock = & maxTxPerBlock
@@ -879,6 +884,7 @@ func TestPrioritizeOverflowTx(t *testing.T) {
879
884
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 }
880
885
chainConfig .LondonBlock = big .NewInt (0 )
881
886
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
887
+ chainConfig .Scroll .UseZktrie = true
882
888
engine := clique .New (chainConfig .Clique , db )
883
889
884
890
w , b := newTestWorker (t , chainConfig , engine , db , 0 )
@@ -1036,6 +1042,7 @@ func TestPending(t *testing.T) {
1036
1042
chainConfig = params .AllCliqueProtocolChanges
1037
1043
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 }
1038
1044
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
1045
+ chainConfig .Scroll .UseZktrie = true
1039
1046
engine = clique .New (chainConfig .Clique , db )
1040
1047
w , b := newTestWorker (t , chainConfig , engine , db , 0 )
1041
1048
defer w .close ()
@@ -1080,6 +1087,7 @@ func TestReorg(t *testing.T) {
1080
1087
chainConfig = params .AllCliqueProtocolChanges
1081
1088
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 , RelaxedPeriod : true }
1082
1089
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
1090
+ chainConfig .Scroll .UseZktrie = true
1083
1091
engine = clique .New (chainConfig .Clique , db )
1084
1092
1085
1093
maxTxPerBlock := 2
@@ -1194,6 +1202,7 @@ func TestRestartHeadCCC(t *testing.T) {
1194
1202
chainConfig = params .AllCliqueProtocolChanges
1195
1203
chainConfig .Clique = & params.CliqueConfig {Period : 1 , Epoch : 30000 , RelaxedPeriod : true }
1196
1204
chainConfig .Scroll .FeeVaultAddress = & common.Address {}
1205
+ chainConfig .Scroll .UseZktrie = true
1197
1206
engine = clique .New (chainConfig .Clique , db )
1198
1207
1199
1208
maxTxPerBlock := 2
0 commit comments