mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-10-31 23:17:27 +00:00 
			
		
		
		
	chore: remove tmp output
This commit is contained in:
		
							parent
							
								
									02e96e6424
								
							
						
					
					
						commit
						4b09c6cd37
					
				| @ -2,7 +2,6 @@ package keeper | |||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"bytes" | 	"bytes" | ||||||
| 	"fmt" |  | ||||||
| 	"math/big" | 	"math/big" | ||||||
| 	"sort" | 	"sort" | ||||||
| 
 | 
 | ||||||
| @ -51,11 +50,9 @@ func (k Keeper) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { | |||||||
| 		} | 		} | ||||||
| 		bonded := k.GetDelegatorBonded(ctx, accAddr) | 		bonded := k.GetDelegatorBonded(ctx, accAddr) | ||||||
| 		num := bonded.Quo(BondedConversionRate).Quo(tokensPerVote).Abs().BigInt() | 		num := bonded.Quo(BondedConversionRate).Quo(tokensPerVote).Abs().BigInt() | ||||||
| 		fmt.Printf("ballots num: %v\n", num) |  | ||||||
| 		if num.Cmp(big.NewInt(int64(params.MaxVotesPerSigner))) > 0 { | 		if num.Cmp(big.NewInt(int64(params.MaxVotesPerSigner))) > 0 { | ||||||
| 			num = big.NewInt(int64(params.MaxVotesPerSigner)) | 			num = big.NewInt(int64(params.MaxVotesPerSigner)) | ||||||
| 		} | 		} | ||||||
| 		fmt.Printf("ballots num limited: %v\n", num) |  | ||||||
| 		content := registration.content | 		content := registration.content | ||||||
| 		ballotNum := num.Int64() | 		ballotNum := num.Int64() | ||||||
| 		for j := 0; j < int(ballotNum); j += 1 { | 		for j := 0; j < int(ballotNum); j += 1 { | ||||||
|  | |||||||
| @ -2,7 +2,6 @@ package keeper | |||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"encoding/hex" | 	"encoding/hex" | ||||||
| 	"fmt" |  | ||||||
| 	"math/big" | 	"math/big" | ||||||
| 
 | 
 | ||||||
| 	"cosmossdk.io/math" | 	"cosmossdk.io/math" | ||||||
| @ -233,7 +232,6 @@ func (k Keeper) CheckDelegations(ctx sdk.Context, account string) error { | |||||||
| 	bonded := k.GetDelegatorBonded(ctx, accAddr) | 	bonded := k.GetDelegatorBonded(ctx, accAddr) | ||||||
| 	params := k.GetParams(ctx) | 	params := k.GetParams(ctx) | ||||||
| 	tokensPerVote := sdk.NewIntFromUint64(params.TokensPerVote) | 	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 { | 	if bonded.Quo(BondedConversionRate).Quo(tokensPerVote).Abs().BigInt().Cmp(big.NewInt(0)) <= 0 { | ||||||
| 		return types.ErrInsufficientBonded | 		return types.ErrInsufficientBonded | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 MiniFrenchBread
						MiniFrenchBread