diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 4bec3dde8d..bac15752f7 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -461,7 +461,7 @@ func ExportHistory(bc *core.BlockChain, dir string, first, last, step uint64) er return fmt.Errorf("export failed to finalize %d: %w", step/i, err) } // Set correct filename with root. - os.Rename(filename, filepath.Join(dir, era.Filename(network, int(i/step), root))) + os.Rename(filename, filepath.Join(dir, era2.Filename(network, int(i/step), root))) // Compute checksum of entire Era1. if _, err := f.Seek(0, io.SeekStart); err != nil {