File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,14 @@ func (l *L2OutputSubmitter) GetRangeProofBoundaries(ctx context.Context) error {
195
195
var spans []Span
196
196
// If the safeDB is activated, we use the safeHead based range splitting algorithm.
197
197
// Otherwise, we use the simple range splitting algorithm.
198
+ spans = l .SplitRangeBasic (newL2StartBlock , newL2EndBlock )
198
199
if safeDBActivated {
199
- spans , err = l .SplitRangeBasedOnSafeHeads (ctx , newL2StartBlock , newL2EndBlock )
200
- if err != nil {
201
- return fmt .Errorf ("failed to split range based on safe heads: %w" , err )
200
+ safeHeadSpans , err := l .SplitRangeBasedOnSafeHeads (ctx , newL2StartBlock , newL2EndBlock )
201
+ if err == nil {
202
+ spans = safeHeadSpans
203
+ } else {
204
+ l .Log .Warn ("failed to split range based on safe heads, using basic range splitting" , "err" , err )
202
205
}
203
- } else {
204
- spans = l .SplitRangeBasic (newL2StartBlock , newL2EndBlock )
205
206
}
206
207
207
208
You can’t perform that action at this time.
0 commit comments