Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Nov 17, 2024
1 parent ec0ea7c commit 86f12c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cl/phase1/forkchoice/fork_graph/fork_graph_disk_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func (f *forkGraphDisk) readBeaconStateFromDisk(blockRoot libcommon.Hash) (bs *s
f.sszBuffer = f.sszBuffer[:binary.BigEndian.Uint64(lengthBytes)]
n, err = io.ReadFull(f.sszSnappyReader, f.sszBuffer)
if err != nil {
fmt.Println(err)
return nil, fmt.Errorf("failed to read snappy buffer: %w, root: %x", err, blockRoot)
}
f.sszBuffer = f.sszBuffer[:n]
Expand All @@ -88,7 +87,6 @@ func (f *forkGraphDisk) readBeaconStateFromDisk(blockRoot libcommon.Hash) (bs *s
// decode the cache file
cacheFile, err := f.fs.Open(getBeaconStateCacheFilename(blockRoot))
if err != nil {
fmt.Println(err)
return
}
defer cacheFile.Close()
Expand Down

0 comments on commit 86f12c9

Please sign in to comment.