Skip to content

Commit

Permalink
Use transactions snapshots as baseSegType (#11895)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 authored Sep 6, 2024
1 parent 5ae250f commit a6c8874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/snapshotsync/freezeblocks/block_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@ type View struct {
}

func (s *RoSnapshots) View() *View {
v := &View{s: s, baseSegType: coresnaptype.Headers}
v := &View{s: s, baseSegType: coresnaptype.Transactions} // Transactions is the last segment to be processed, so it's the most reliable.
s.segments.Scan(func(segtype snaptype.Enum, value *segments) bool {
value.lock.RLock()
return true
Expand Down

0 comments on commit a6c8874

Please sign in to comment.