Skip to content

Commit

Permalink
log blocks stat after downloading, before indexing (#8947)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Dec 11, 2023
1 parent 34d93fb commit 7fb8f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions eth/stagedsync/stage_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R
return err
}

cfg.blockReader.Snapshots().LogStat()
cfg.agg.LogStats(tx, func(endTxNumMinimax uint64) uint64 {
_, histBlockNumProgress, _ := rawdbv3.TxNums.FindBlockNum(tx, endTxNumMinimax)
return histBlockNumProgress
Expand Down
1 change: 1 addition & 0 deletions turbo/services/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ type FullBlockReader interface {
}

type BlockSnapshots interface {
LogStat()
ReopenFolder() error
SegmentsMax() uint64
ScanDir() (map[string]struct{}, []*Range, error)
Expand Down

0 comments on commit 7fb8f9d

Please sign in to comment.