mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
allow nil segment (#5224)
* Alpha modification * save Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
This commit is contained in:
parent
01dbad0979
commit
c898c2a242
@ -32,9 +32,9 @@ var (
|
||||
// see https://calver.org
|
||||
const (
|
||||
VersionMajor = 2022 // Major version component of the current release
|
||||
VersionMinor = 99 // Minor version component of the current release
|
||||
VersionMicro = 99 // Patch version component of the current release
|
||||
VersionModifier = "dev" // Modifier component of the current release
|
||||
VersionMinor = 8 // Minor version component of the current release
|
||||
VersionMicro = 3 // Patch version component of the current release
|
||||
VersionModifier = "alpha" // Modifier component of the current release
|
||||
VersionKeyCreated = "ErigonVersionCreated"
|
||||
VersionKeyFinished = "ErigonVersionFinished"
|
||||
)
|
||||
|
@ -412,6 +412,9 @@ func (s *RoSnapshots) Files() (list []string) {
|
||||
defer s.Txs.lock.RUnlock()
|
||||
max := s.BlocksAvailable()
|
||||
for _, seg := range s.Bodies.segments {
|
||||
if seg.seg == nil {
|
||||
continue
|
||||
}
|
||||
if seg.ranges.from > max {
|
||||
continue
|
||||
}
|
||||
@ -419,6 +422,9 @@ func (s *RoSnapshots) Files() (list []string) {
|
||||
list = append(list, fName)
|
||||
}
|
||||
for _, seg := range s.Headers.segments {
|
||||
if seg.seg == nil {
|
||||
continue
|
||||
}
|
||||
if seg.ranges.from > max {
|
||||
continue
|
||||
}
|
||||
@ -426,6 +432,9 @@ func (s *RoSnapshots) Files() (list []string) {
|
||||
list = append(list, fName)
|
||||
}
|
||||
for _, seg := range s.Txs.segments {
|
||||
if seg.Seg == nil {
|
||||
continue
|
||||
}
|
||||
if seg.ranges.from > max {
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user