fix golint

This commit is contained in:
rigelrozanski 2018-08-29 20:24:35 -04:00
parent 6fd8299b1a
commit 8d02c3eba0
2 changed files with 2 additions and 3 deletions

View File

@ -426,9 +426,6 @@ func (k Keeper) BeginRedelegation(ctx sdk.Context, delegatorAddr, validatorSrcAd
} }
// create the unbonding delegation // create the unbonding delegation
minTime := ctx.BlockHeader().Time.Add(params.UnbondingTime)
height := ctx.BlockHeader().Height
minTime, height, completeNow := k.getBeginInfo(ctx, params, validatorSrcAddr) minTime, height, completeNow := k.getBeginInfo(ctx, params, validatorSrcAddr)
if completeNow { // no need to create the redelegation object if completeNow { // no need to create the redelegation object

View File

@ -22,6 +22,8 @@ import (
// CONTRACT: // CONTRACT:
// Infraction committed at the current height or at a past height, // Infraction committed at the current height or at a past height,
// not at a height in the future // not at a height in the future
//
// nolint: gocyclo
func (k Keeper) Slash(ctx sdk.Context, pubkey crypto.PubKey, infractionHeight int64, power int64, slashFactor sdk.Dec) { func (k Keeper) Slash(ctx sdk.Context, pubkey crypto.PubKey, infractionHeight int64, power int64, slashFactor sdk.Dec) {
logger := ctx.Logger().With("module", "x/stake") logger := ctx.Logger().With("module", "x/stake")