Skip to content

Commit

Permalink
fix: skip undiscovered vgf
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 committed Feb 29, 2024
1 parent 3815ffd commit 0998071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/virtualgroup/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (k Keeper) QuerySpAvailableGlobalVirtualGroupFamilies(goCtx context.Context
for _, gvgfID := range stats.GlobalVirtualGroupFamilyIds {
gvgFamily, found := k.GetGVGFamily(ctx, gvgfID)
if !found {
return nil, types.ErrGVGFamilyNotExist
continue
}
totalStakingSize, stored, err := k.GetGlobalVirtualFamilyTotalStakingAndStoredSize(ctx, gvgFamily)
if err != nil {
Expand Down Expand Up @@ -214,7 +214,7 @@ func (k Keeper) QuerySpOptimalGlobalVirtualGroupFamily(goCtx context.Context, re
for _, gvgfID := range stats.GlobalVirtualGroupFamilyIds {
gvgFamily, found := k.GetGVGFamily(ctx, gvgfID)
if !found {
return nil, types.ErrGVGFamilyNotExist
continue
}
totalStakingSize, stored, err := k.GetGlobalVirtualFamilyTotalStakingAndStoredSize(ctx, gvgFamily)
if err != nil {
Expand Down

0 comments on commit 0998071

Please sign in to comment.