Skip to content

Commit

Permalink
wip: removed one debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Nov 12, 2024
1 parent 3a130e4 commit dfd3430
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions crypto/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"io"
"os"
"path/filepath"
"runtime/debug"
"sort"
"strings"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion x/distribution/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dfd3430

Please sign in to comment.