@@ -696,7 +696,7 @@ var (
696
696
WitnessFullFlag = cli.BoolFlag {
697
697
Name : "zkevm.witness-full" ,
698
698
Usage : "Enable/Diable witness full" ,
699
- Value : true ,
699
+ Value : false ,
700
700
}
701
701
SyncLimit = cli.UintFlag {
702
702
Name : "zkevm.sync-limit" ,
@@ -733,14 +733,24 @@ var (
733
733
Usage : "The multiplier to reduce the SMT depth by when calculating virtual counters" ,
734
734
Value : 0.6 ,
735
735
}
736
+ BadBatches = cli.StringFlag {
737
+ Name : "zkevm.bad-batches" ,
738
+ Usage : "A comma separated list of batch numbers that are known bad on the L1. These will automatically be marked as bad during L1 recovery" ,
739
+ Value : "" ,
740
+ }
736
741
InitialBatchCfgFile = cli.StringFlag {
737
742
Name : "zkevm.initial-batch.config" ,
738
743
Usage : "The file that contains the initial (injected) batch data." ,
739
744
Value : "" ,
740
745
}
746
+ InfoTreeUpdateInterval = cli.DurationFlag {
747
+ Name : "zkevm.info-tree-update-interval" ,
748
+ Usage : "The interval at which the sequencer checks the L1 for new GER information" ,
749
+ Value : 1 * time .Minute ,
750
+ }
741
751
ACLPrintHistory = cli.IntFlag {
742
752
Name : "acl.print-history" ,
743
- Usage : "Number of entries to print from the ACL history on node startup " ,
753
+ Usage : "Number of entries to print from the ACL history on node start up " ,
744
754
Value : 10 ,
745
755
}
746
756
DebugTimers = cli.BoolFlag {
@@ -1433,6 +1443,7 @@ func setNodeUserIdent(ctx *cli.Context, cfg *nodecfg.Config) {
1433
1443
cfg .UserIdent = identity
1434
1444
}
1435
1445
}
1446
+
1436
1447
func setNodeUserIdentCobra (f * pflag.FlagSet , cfg * nodecfg.Config ) {
1437
1448
if identity := f .String (IdentityFlag .Name , IdentityFlag .Value , IdentityFlag .Usage ); identity != nil && len (* identity ) > 0 {
1438
1449
cfg .UserIdent = * identity
@@ -1741,7 +1752,7 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config, nodeName, datadir string, l
1741
1752
1742
1753
if ctx .String (ChainFlag .Name ) == networkname .DevChainName {
1743
1754
// --dev mode can't use p2p networking.
1744
- //cfg.MaxPeers = 0 // It can have peers otherwise local sync is not possible
1755
+ // cfg.MaxPeers = 0 // It can have peers otherwise local sync is not possible
1745
1756
if ! ctx .IsSet (ListenPortFlag .Name ) {
1746
1757
cfg .ListenAddr = ":0"
1747
1758
}
@@ -1762,7 +1773,7 @@ func SetNodeConfig(ctx *cli.Context, cfg *nodecfg.Config, logger log.Logger) {
1762
1773
1763
1774
func SetNodeConfigCobra (cmd * cobra.Command , cfg * nodecfg.Config ) {
1764
1775
flags := cmd .Flags ()
1765
- //SetP2PConfig(ctx, &cfg.P2P)
1776
+ // SetP2PConfig(ctx, &cfg.P2P)
1766
1777
setNodeUserIdentCobra (flags , cfg )
1767
1778
setDataDirCobra (flags , cfg )
1768
1779
}
@@ -2144,7 +2155,7 @@ func SetEthConfig(ctx *cli.Context, nodeConfig *nodecfg.Config, cfg *ethconfig.C
2144
2155
}
2145
2156
2146
2157
cfg .Sync .UseSnapshots = ethconfig .UseSnapshotsByChainName (chain )
2147
- if ctx .IsSet (SnapshotFlag .Name ) { //force override default by cli
2158
+ if ctx .IsSet (SnapshotFlag .Name ) { // force override default by cli
2148
2159
cfg .Sync .UseSnapshots = ctx .Bool (SnapshotFlag .Name )
2149
2160
}
2150
2161
@@ -2175,7 +2186,6 @@ func SetEthConfig(ctx *cli.Context, nodeConfig *nodecfg.Config, cfg *ethconfig.C
2175
2186
webseedsList = append (webseedsList , known ... )
2176
2187
}
2177
2188
cfg .Downloader , err = downloadercfg2 .New (cfg .Dirs , version , lvl , downloadRate , uploadRate , ctx .Int (TorrentPortFlag .Name ), ctx .Int (TorrentConnsPerFileFlag .Name ), ctx .Int (TorrentDownloadSlotsFlag .Name ), libcommon .CliString2Array (ctx .String (TorrentStaticPeersFlag .Name )), webseedsList , chain , true )
2178
-
2179
2189
if err != nil {
2180
2190
panic (err )
2181
2191
}
0 commit comments