Skip to content

Commit

Permalink
guestimate block window for keyswaps in happyPeth
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Dec 2, 2022
1 parent 3a5a312 commit 22f1b25
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion tests/integration/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ func (tr TestRun) 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, 3, time.Minute)
tr.waitBlocks(action.chain, 15, time.Minute)
// Bring validator back up
tr.setValidatorDowntime(action.chain, action.validator, false, verbose)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func DefaultTestRun() TestRun {
ipPrefix: "7.7.8",
votingWaitTime: 20,
genesisChanges: ".app_state.gov.voting_params.voting_period = \"20s\" | " +
".app_state.slashing.params.signed_blocks_window = \"2\" | " +
".app_state.slashing.params.signed_blocks_window = \"20\" | " +
".app_state.slashing.params.min_signed_per_window = \"0.500000000000000000\" | " +
".app_state.slashing.params.downtime_jail_duration = \"2s\" | " +
".app_state.slashing.params.slash_fraction_downtime = \"0.010000000000000000\"",
Expand Down
8 changes: 0 additions & 8 deletions tests/integration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ func main() {
dmc.ValidateStringLiterals()
dmc.startDocker()

keys := KeyAssignmentTestRun()
keys.SetLocalSDKPath(*localSdkPath)
keys.ValidateStringLiterals()
keys.startDocker()

wg.Add(1)
go keys.ExecuteSteps(&wg, keyAssignmentSteps)

wg.Add(1)
go tr.ExecuteSteps(&wg, happyPathSteps)

Expand Down
9 changes: 1 addition & 8 deletions tests/integration/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,10 @@ func concatSteps(steps ...[]Step) []Step {
return concat
}

var keyAssignmentSteps = concatSteps(
stepsStartChains([]string{"consu"}, false),
stepsDelegate("consu"),
stepsAssignConsumerKeyOnStartedChain("consu", "bob"),
stepsUnbond("consu"),
stepsRedelegate("consu"),
)

var happyPathSteps = concatSteps(
stepsStartChains([]string{"consu"}, false),
stepsDelegate("consu"),
stepsAssignConsumerKeyOnStartedChain("consu", "bob"),
stepsUnbond("consu"),
stepsRedelegate("consu"),
stepsDowntime("consu"),
Expand Down

0 comments on commit 22f1b25

Please sign in to comment.