From 73158cd7387a0dbf2da50e5ed5ca802fc05b5bef Mon Sep 17 00:00:00 2001 From: MiniFrenchBread <103425574+MiniFrenchBread@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:21:53 +0800 Subject: [PATCH] chore: remove tmp output --- x/dasigners/v1/keeper/abci.go | 3 --- x/dasigners/v1/keeper/keeper.go | 2 -- 2 files changed, 5 deletions(-) diff --git a/x/dasigners/v1/keeper/abci.go b/x/dasigners/v1/keeper/abci.go index 81df3c3d..e3a77d6e 100644 --- a/x/dasigners/v1/keeper/abci.go +++ b/x/dasigners/v1/keeper/abci.go @@ -2,7 +2,6 @@ package keeper import ( "bytes" - "fmt" "math/big" "sort" @@ -51,11 +50,9 @@ func (k Keeper) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { } bonded := k.GetDelegatorBonded(ctx, accAddr) num := bonded.Quo(BondedConversionRate).Quo(tokensPerVote).Abs().BigInt() - fmt.Printf("ballots num: %v\n", num) if num.Cmp(big.NewInt(int64(params.MaxVotesPerSigner))) > 0 { num = big.NewInt(int64(params.MaxVotesPerSigner)) } - fmt.Printf("ballots num limited: %v\n", num) content := registration.content ballotNum := num.Int64() for j := 0; j < int(ballotNum); j += 1 { diff --git a/x/dasigners/v1/keeper/keeper.go b/x/dasigners/v1/keeper/keeper.go index 8dd900f6..530b84c9 100644 --- a/x/dasigners/v1/keeper/keeper.go +++ b/x/dasigners/v1/keeper/keeper.go @@ -2,7 +2,6 @@ package keeper import ( "encoding/hex" - "fmt" "math/big" "cosmossdk.io/math" @@ -233,7 +232,6 @@ func (k Keeper) CheckDelegations(ctx sdk.Context, account string) error { bonded := k.GetDelegatorBonded(ctx, accAddr) params := k.GetParams(ctx) tokensPerVote := sdk.NewIntFromUint64(params.TokensPerVote) - fmt.Printf("account: %v, bonded: %v, conversion rate: %v, ticket: %v\n", account, bonded, BondedConversionRate, bonded.Quo(BondedConversionRate).Quo(tokensPerVote)) if bonded.Quo(BondedConversionRate).Quo(tokensPerVote).Abs().BigInt().Cmp(big.NewInt(0)) <= 0 { return types.ErrInsufficientBonded }