Skip to content

Commit 6aaa925

Browse files
alarso16JonathanOppenheimer
authored andcommitted
remove old path for firewood (#1275)
1 parent 11b5847 commit 6aaa925

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

triedb/firewood/database.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,6 @@ func validatePath(path string) error {
147147
return fmt.Errorf("database directory path is not a directory: %s", dir)
148148
}
149149

150-
// TODO(#1253): remove this after testing infrastructure is updated
151-
oldPath := filepath.Join(dir, "firewood_state")
152-
if _, err := os.Stat(oldPath); err == nil {
153-
log.Warn("Found old database file, moving to new location", "old", oldPath, "new", path)
154-
if err := os.Rename(oldPath, path); err != nil {
155-
return fmt.Errorf("failed to move old database file: %w", err)
156-
}
157-
}
158-
159150
return nil
160151
}
161152

0 commit comments

Comments
 (0)