mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
remove unnecessary seek
This commit is contained in:
parent
6184e7704f
commit
ee86950c35
1 changed files with 0 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue