fix golint
This commit is contained in:
parent
6fd8299b1a
commit
8d02c3eba0
|
@ -426,9 +426,6 @@ func (k Keeper) BeginRedelegation(ctx sdk.Context, delegatorAddr, validatorSrcAd
|
|||
}
|
||||
|
||||
// create the unbonding delegation
|
||||
minTime := ctx.BlockHeader().Time.Add(params.UnbondingTime)
|
||||
height := ctx.BlockHeader().Height
|
||||
|
||||
minTime, height, completeNow := k.getBeginInfo(ctx, params, validatorSrcAddr)
|
||||
|
||||
if completeNow { // no need to create the redelegation object
|
||||
|
|
|
@ -22,6 +22,8 @@ import (
|
|||
// CONTRACT:
|
||||
// Infraction committed at the current height or at a past height,
|
||||
// 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) {
|
||||
logger := ctx.Logger().With("module", "x/stake")
|
||||
|
||||
|
|
Loading…
Reference in New Issue