Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Jul 31, 2023
1 parent f5ff374 commit 72bbdfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/architecture/adr-064-abci-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ func (app *BaseApp) ValidateVoteExtensions(ctx sdk.Context, currentHeight int64,

valConsAddr := sdk.ConsAddress(vote.Validator.Address)
bondedTokens, cmtPubKey, err := valStore.BondedTokensAndPubKeyByConsAddr(ctx, valConsAddr)
if err != nil {
return fmt.Errorf("failed to get bonded tokens and public key for validator %s: %w", valConsAddr, err)
}

if len(vote.ExtensionSignature) == 0 {
return fmt.Errorf("received a non-empty vote extension with empty signature for validator %s", valConsAddr)
Expand Down
2 changes: 1 addition & 1 deletion x/staking/keeper/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func (k Keeper) IsValidatorJailed(ctx context.Context, addr sdk.ConsAddress) (bo
return v.Jailed, nil
}

// CmtConsPublicKeyByConsAddr returns the consensus public key and bonded tokens by consensus address
// BondedTokensAndPubKeyByConsAddr returns the consensus public key and bonded tokens by consensus address
func (k Keeper) BondedTokensAndPubKeyByConsAddr(ctx context.Context, addr sdk.ConsAddress) (math.Int, cmtprotocrypto.PublicKey, error) {
v, err := k.GetValidatorByConsAddr(ctx, addr)
if err != nil {
Expand Down

0 comments on commit 72bbdfd

Please sign in to comment.