Skip to content

Commit

Permalink
fix ante handler block height (#445)
Browse files Browse the repository at this point in the history
fix ante handler
  • Loading branch information
KonradStaniec authored Feb 2, 2024
1 parent 08452a1 commit 6f4e5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/epoching/keeper/drop_validator_msg_decorator.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewDropValidatorMsgDecorator(ek Keeper) *DropValidatorMsgDecorator {
// - MsgCancelUnbondingDelegation
func (qmd DropValidatorMsgDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
// skip if at genesis block, as genesis state contains txs that bootstrap the initial validator set
if ctx.HeaderInfo().Height == 0 {
if ctx.BlockHeight() == 0 {
return next(ctx, tx, simulate)
}
// after genesis, if validator-related message, reject msg
Expand Down

0 comments on commit 6f4e5eb

Please sign in to comment.