mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 12:16:44 +00:00
small update
This commit is contained in:
parent
45f5b3e559
commit
f808a97406
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
return fmt.Errorf("export failed to finalize %d: %w", step/i, err)
|
||||||
}
|
}
|
||||||
// Set correct filename with root.
|
// 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.
|
// Compute checksum of entire Era1.
|
||||||
if _, err := f.Seek(0, io.SeekStart); err != nil {
|
if _, err := f.Seek(0, io.SeekStart); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue