From dfd34308fe09a793849a23883ee60b494e0d7238 Mon Sep 17 00:00:00 2001 From: Vladyslav Budichenko Date: Tue, 12 Nov 2024 16:55:50 -0500 Subject: [PATCH] wip: removed one debug log --- crypto/keyring/keyring.go | 6 +----- x/distribution/keeper/keeper.go | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crypto/keyring/keyring.go b/crypto/keyring/keyring.go index 326ca9550284..826edf23f8d0 100644 --- a/crypto/keyring/keyring.go +++ b/crypto/keyring/keyring.go @@ -7,7 +7,6 @@ import ( "io" "os" "path/filepath" - "runtime/debug" "sort" "strings" @@ -538,8 +537,6 @@ func (ks keystore) KeyByAddress(address sdk.Address) (*Record, error) { func wrapKeyNotFound(err error, msg string) error { if err == keyring.ErrKeyNotFound { - fmt.Println("wrapKeyNotFound", msg, err) - debug.PrintStack() return errorsmod.Wrap(sdkerrors.ErrKeyNotFound, msg) } return err @@ -952,8 +949,7 @@ func (ks keystore) MigrateAll() ([]*Record, error) { // 6. write the proto-encoded key back to the keyring func (ks keystore) migrate(key string) (*Record, error) { if !strings.HasSuffix(key, infoSuffix) { - // TODO(boodyvo): check what exactly should be here - //key = infoKey(key) + key = infoKey(key) } // 1. get the key. diff --git a/x/distribution/keeper/keeper.go b/x/distribution/keeper/keeper.go index 98d3d51e5369..7bea2017a1b9 100644 --- a/x/distribution/keeper/keeper.go +++ b/x/distribution/keeper/keeper.go @@ -106,7 +106,6 @@ func (k Keeper) SetWithdrawAddr(ctx context.Context, delegatorAddr, withdrawAddr // withdraw rewards from a delegation func (k Keeper) WithdrawDelegationRewards(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) { val, err := k.stakingKeeper.Validator(ctx, valAddr) - fmt.Println("val", val, err) if err != nil { return nil, err }