Skip to content

Commit

Permalink
fix for orphaned flag on slot details page
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 25, 2023
1 parent 492f6c4 commit 3c84f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/beaconservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ func (bs *BeaconService) CheckBlockOrphanedStatus(blockRoot []byte) bool {
return !cachedBlock.IsCanonical(bs.indexer, nil)
}
dbRefs := db.GetBlockOrphanedRefs([][]byte{blockRoot})
return len(dbRefs) > 0
return len(dbRefs) > 0 && dbRefs[0].Orphaned
}

func (bs *BeaconService) GetValidatorActivity() (map[uint64]uint8, uint64) {
Expand Down

0 comments on commit 3c84f22

Please sign in to comment.