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
@ -31,10 +31,10 @@ var (
|
|||||||
|
|
||||||
// see https://calver.org
|
// see https://calver.org
|
||||||
const (
|
const (
|
||||||
VersionMajor = 2022 // Major version component of the current release
|
VersionMajor = 2022 // Major version component of the current release
|
||||||
VersionMinor = 99 // Minor version component of the current release
|
VersionMinor = 8 // Minor version component of the current release
|
||||||
VersionMicro = 99 // Patch version component of the current release
|
VersionMicro = 3 // Patch version component of the current release
|
||||||
VersionModifier = "dev" // Modifier component of the current release
|
VersionModifier = "alpha" // Modifier component of the current release
|
||||||
VersionKeyCreated = "ErigonVersionCreated"
|
VersionKeyCreated = "ErigonVersionCreated"
|
||||||
VersionKeyFinished = "ErigonVersionFinished"
|
VersionKeyFinished = "ErigonVersionFinished"
|
||||||
)
|
)
|
||||||
|
@ -412,6 +412,9 @@ func (s *RoSnapshots) Files() (list []string) {
|
|||||||
defer s.Txs.lock.RUnlock()
|
defer s.Txs.lock.RUnlock()
|
||||||
max := s.BlocksAvailable()
|
max := s.BlocksAvailable()
|
||||||
for _, seg := range s.Bodies.segments {
|
for _, seg := range s.Bodies.segments {
|
||||||
|
if seg.seg == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if seg.ranges.from > max {
|
if seg.ranges.from > max {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -419,6 +422,9 @@ func (s *RoSnapshots) Files() (list []string) {
|
|||||||
list = append(list, fName)
|
list = append(list, fName)
|
||||||
}
|
}
|
||||||
for _, seg := range s.Headers.segments {
|
for _, seg := range s.Headers.segments {
|
||||||
|
if seg.seg == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if seg.ranges.from > max {
|
if seg.ranges.from > max {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -426,6 +432,9 @@ func (s *RoSnapshots) Files() (list []string) {
|
|||||||
list = append(list, fName)
|
list = append(list, fName)
|
||||||
}
|
}
|
||||||
for _, seg := range s.Txs.segments {
|
for _, seg := range s.Txs.segments {
|
||||||
|
if seg.Seg == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if seg.ranges.from > max {
|
if seg.ranges.from > max {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user