Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed May 7, 2023
1 parent 881aaae commit e2d9237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/pairing/keeper/msg_server_freeze.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/lavanet/lava/x/pairing/types"
)

const FROZEN_BLOCK = math.MaxInt64
const FrozenBlock = math.MaxInt64

func (k msgServer) FreezeProvider(goCtx context.Context, msg *types.MsgFreezeProvider) (*types.MsgFreezeProviderResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
Expand All @@ -35,7 +35,7 @@ func (k Keeper) FreezeProvider(ctx sdk.Context, provider string, chainIDs []stri
}

// freeze the provider by making the StakeAppliedBlock be max. This will remove the provider from the pairing list in the next epoch
stakeEntry.StakeAppliedBlock = FROZEN_BLOCK
stakeEntry.StakeAppliedBlock = FrozenBlock
k.epochStorageKeeper.ModifyStakeEntryCurrent(ctx, epochstoragetypes.ProviderKey, chainId, stakeEntry, index)
}

Expand Down

0 comments on commit e2d9237

Please sign in to comment.