@@ -18,6 +18,10 @@ type OpRecipe struct {
18
18
// blockTime is the block time to use for the rollup
19
19
// (default is 2 seconds)
20
20
blockTime uint64
21
+
22
+ // batcherMaxChannelDuration is the maximum channel duration to use for the batcher
23
+ // (default is 2 seconds)
24
+ batcherMaxChannelDuration uint64
21
25
}
22
26
23
27
func (o * OpRecipe ) Name () string {
@@ -33,6 +37,7 @@ func (o *OpRecipe) Flags() *flag.FlagSet {
33
37
flags .StringVar (& o .externalBuilder , "external-builder" , "" , "External builder URL" )
34
38
flags .Var (& nullableUint64Value {& o .enableLatestFork }, "enable-latest-fork" , "Enable latest fork isthmus (nil or empty = disabled, otherwise enabled at specified block)" )
35
39
flags .Uint64Var (& o .blockTime , "block-time" , defaultOpBlockTimeSeconds , "Block time to use for the rollup" )
40
+ flags .Uint64Var (& o .batcherMaxChannelDuration , "batcher-max-channel-duration" , 2 , "Maximum channel duration to use for the batcher" )
36
41
return flags
37
42
}
38
43
@@ -79,9 +84,10 @@ func (o *OpRecipe) Apply(ctx *ExContext, artifacts *Artifacts) *Manifest {
79
84
UseDeterministicP2PKey : o .externalBuilder != "" ,
80
85
})
81
86
svcManager .AddService ("op-batcher" , & OpBatcher {
82
- L1Node : "el" ,
83
- L2Node : "op-geth" ,
84
- RollupNode : "op-node" ,
87
+ L1Node : "el" ,
88
+ L2Node : "op-geth" ,
89
+ RollupNode : "op-node" ,
90
+ MaxChannelDuration : o .batcherMaxChannelDuration ,
85
91
})
86
92
return svcManager
87
93
}
0 commit comments