small update

This commit is contained in:
shantichanal 2025-07-18 00:01:35 +02:00 committed by lightclient
parent 45f5b3e559
commit f808a97406
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -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 {