Skip to content

Commit

Permalink
removed prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Oct 1, 2018
1 parent ee419b7 commit b192b1d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions x/stake/keeper/delegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package keeper

import (
"bytes"
"fmt"
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -433,15 +432,8 @@ func (k Keeper) unbond(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValA

k.SetPool(ctx, pool)

fmt.Println("zero")
validator0, found0 := k.GetValidator(ctx, valAddr)
fmt.Println(found0)
// fmt.Println(validator0)
fmt.Println(validator0.Status)

// update then remove validator if necessary
validator = k.UpdateValidator(ctx, validator)
fmt.Println(validator.DelegatorShares.IsZero())
if validator.DelegatorShares.IsZero() {
k.RemoveValidator(ctx, validator.OperatorAddr)
}
Expand All @@ -457,7 +449,6 @@ func (k Keeper) getBeginInfo(ctx sdk.Context, params types.Params, valSrcAddr sd
minTime time.Time, height int64, completeNow bool) {

validator, found := k.GetValidator(ctx, valSrcAddr)
fmt.Println(validator.Status)

switch {
case !found || validator.Status == sdk.Bonded:
Expand Down

0 comments on commit b192b1d

Please sign in to comment.