remove unnecessary seek

This commit is contained in:
Sina Mahmoodi 2026-03-24 16:58:13 +00:00
parent 6184e7704f
commit ee86950c35

View file

@ -297,10 +297,6 @@ func ImportHistory(chain *core.BlockChain, dir string, network string, from func
if got != checksums[i] {
return fmt.Errorf("%s checksum mismatch: have %s want %s", file, got, checksums[i])
}
if _, err := f.Seek(0, io.SeekStart); err != nil {
return fmt.Errorf("seek %s: %w", path, err)
}
// Import all block data from Era1.
e, err := from(f)
if err != nil {