Skip to content

Commit fbfc1dc

Browse files
Alex SharpAlex Sharp
authored andcommitted
Fix migration for clean database
1 parent 43915a7 commit fbfc1dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

migrations/call_trace_index.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var rebuilCallTraceIndex = Migration{
1919
}
2020
if !sm.CallTraces {
2121
// Call traces are not on, nothing to migrate
22-
return nil
22+
return CommitProgress(db, nil, true)
2323
}
2424
// Find the lowest key in the TraceCallSet table
2525
tx := db.(ethdb.HasTx).Tx()
@@ -35,12 +35,12 @@ var rebuilCallTraceIndex = Migration{
3535
}
3636
if k == nil {
3737
log.Warn("Nothing to rebuild, CallTraceSet table is empty")
38-
return nil
38+
return CommitProgress(db, nil, true)
3939
}
4040
blockNum := binary.BigEndian.Uint64((k))
4141
if blockNum == 0 {
4242
log.Warn("Nothing to rebuild, CallTraceSet's first record", "number", blockNum)
43-
return nil
43+
return CommitProgress(db, nil, true)
4444
}
4545
log.Info("First record in CallTraceTable", "number", blockNum)
4646
if err = stages.SaveStageUnwind(db, stages.CallTraces, blockNum-1); err != nil {

0 commit comments

Comments
 (0)