Skip to content

Commit

Permalink
updates e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Jul 17, 2024
1 parent 00bdf4d commit cd5c518
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/valset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ func jailValidator(t *testing.T, consAddr sdk.ConsAddress, coordinator *wasmibct
ctx = chain.GetContext()
signInfo.MissedBlocksCounter = app.SlashingKeeper.MinSignedPerWindow(ctx)
app.SlashingKeeper.SetValidatorSigningInfo(ctx, consAddr, signInfo)
power := app.StakingKeeper.GetLastValidatorPower(ctx, sdk.ValAddress(consAddr))

v, _ := app.StakingKeeper.GetValidatorByConsAddr(ctx, consAddr)
power := app.StakingKeeper.GetLastValidatorPower(ctx, v.GetOperator())
app.SlashingKeeper.HandleValidatorSignature(ctx, cryptotypes.Address(consAddr), power, false)
// when updates trigger
chain.NextBlock()
Expand Down

0 comments on commit cd5c518

Please sign in to comment.