File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -281,15 +281,14 @@ func (ln *localNetwork) loadSnapshot(
281
281
return err
282
282
}
283
283
}
284
- return fmt .Errorf ("PEPE" )
285
284
// load data dir
286
285
for _ , nodeConfig := range networkConfig .NodeConfigs {
287
- sourceDBDir := filepath .Join (v0SnapshotDBDir , nodeConfig .Name )
288
- targetDBDir := filepath .Join (filepath . Join ( ln .rootDir , nodeConfig .Name ), defaultDBSubdir )
289
- if err := dircopy .Copy (sourceDBDir , targetDBDir ); err != nil {
290
- return fmt .Errorf ("failure loading node %q db dir: %w" , nodeConfig .Name , err )
286
+ sourceDataDir := filepath .Join (snapshotDir , nodeConfig .Name )
287
+ targetDataDir := filepath .Join (ln .rootDir , nodeConfig .Name )
288
+ if err := dircopy .Copy (sourceDataDir , targetDataDir ); err != nil {
289
+ return fmt .Errorf ("failure loading node %q data dir: %w" , nodeConfig .Name , err )
291
290
}
292
- nodeConfig .Flags [config .DBPathKey ] = targetDBDir
291
+ nodeConfig .Flags [config .DataDirKey ] = targetDataDir
293
292
}
294
293
// replace binary path
295
294
if binaryPath != "" {
You can’t perform that action at this time.
0 commit comments