diff --git a/x/fbridge/keeper/keeper.go b/x/fbridge/keeper/keeper.go index 7d87a7e979..18cc8e0ef9 100644 --- a/x/fbridge/keeper/keeper.go +++ b/x/fbridge/keeper/keeper.go @@ -129,12 +129,16 @@ func (k Keeper) GetRoleMetadata(ctx sdk.Context) types.RoleMetadata { func (k Keeper) GetBridgeStatus(ctx sdk.Context) types.BridgeStatus { roleMeta := k.GetRoleMetadata(ctx) - bsMeta := k.GetBridgeStatusMetadata(ctx) - if types.CheckTrustLevelThreshold(roleMeta.Guardian, bsMeta.Inactive, k.GetParams(ctx).GuardianTrustLevel) { - return types.StatusInactive + if roleMeta.Guardian != 0 { + bsMeta := k.GetBridgeStatusMetadata(ctx) + if types.CheckTrustLevelThreshold(roleMeta.Guardian, bsMeta.Inactive, k.GetParams(ctx).GuardianTrustLevel) { + return types.StatusInactive + } + + return types.StatusActive } - return types.StatusActive + return types.StatusInactive } func (k Keeper) setBridgeInactiveCounter(ctx sdk.Context, nInactive uint64) {