Skip to content

Commit

Permalink
report unreachable clients with head slot 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 30, 2023
1 parent 8a30272 commit 042aaed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ func (indexer *Indexer) GetHeadForks(readyOnly bool) []*HeadFork {
continue
}
cHeadSlot, cHeadRoot, _ := client.GetLastHead()
if cHeadSlot < 0 {
cHeadSlot = 0
}
var matchingFork *HeadFork
for _, fork := range headForks {
if bytes.Equal(fork.Root, cHeadRoot) || indexer.indexerCache.isCanonicalBlock(cHeadRoot, fork.Root) {
Expand Down

0 comments on commit 042aaed

Please sign in to comment.