Skip to content

Commit

Permalink
Update app/forks.go
Browse files Browse the repository at this point in the history
Signed-off-by: yihuang <[email protected]>
  • Loading branch information
yihuang authored Feb 29, 2024
1 parent 467264c commit 54a21ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forks.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ var SlashingForkHeights = map[string]int64{
}

func SlashingForkEnabled(ctx sdk.Context) bool {
return SlashingForkHeights[ctx.ChainID()] >= ctx.BlockHeight()
return ctx.BlockHeight() >= SlashingForkHeights[ctx.ChainID()]

Check warning on line 14 in app/forks.go

View check run for this annotation

Codecov / codecov/patch

app/forks.go#L13-L14

Added lines #L13 - L14 were not covered by tests
}

0 comments on commit 54a21ba

Please sign in to comment.