Skip to content

Commit

Permalink
test: extend slashing window in E2E-tests (#2265)
Browse files Browse the repository at this point in the history
* increase slashing window for e2e tests

* nit
  • Loading branch information
sainoe authored Sep 13, 2024
1 parent a19e242 commit ff75383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ func (tr Chain) invokeDowntimeSlash(action DowntimeSlashAction, verbose bool) {
// Bring validator down
tr.setValidatorDowntime(action.Chain, action.Validator, true, verbose)
// Wait appropriate amount of blocks for validator to be slashed
tr.waitBlocks(action.Chain, 11, 3*time.Minute)
tr.waitBlocks(action.Chain, 16, 3*time.Minute)
// Bring validator back up
tr.setValidatorDowntime(action.Chain, action.Validator, false, verbose)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func DefaultTestConfig() TestConfig {
IpPrefix: "7.7.8",
VotingWaitTime: 20,
GenesisChanges: ".app_state.gov.params.voting_period = \"20s\" | " +
".app_state.slashing.params.signed_blocks_window = \"20\" | " +
".app_state.slashing.params.signed_blocks_window = \"30\" | " +
".app_state.slashing.params.min_signed_per_window = \"0.500000000000000000\" | " +
".app_state.slashing.params.downtime_jail_duration = \"60s\" | " +
".app_state.slashing.params.slash_fraction_downtime = \"0.010000000000000000\"",
Expand Down

0 comments on commit ff75383

Please sign in to comment.