Skip to content

Commit

Permalink
e2e/runtime: Also configure intervals for PVSS backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Feb 3, 2021
1 parent 81c07cd commit 02d20b3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions go/oasis-test-runner/scenario/e2e/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,15 @@ func (sc *runtimeImpl) Fixture() (*oasis.NetworkFixture, error) {
},
}

epochInterval, _ := sc.Flags.GetInt64(cfgEpochInterval)
ff.Network.Beacon.InsecureParameters = &beacon.InsecureParameters{
Interval: epochInterval,
if epochInterval, _ := sc.Flags.GetInt64(cfgEpochInterval); epochInterval > 0 {
ff.Network.Beacon.InsecureParameters = &beacon.InsecureParameters{
Interval: epochInterval,
}
ff.Network.Beacon.PVSSParameters = &beacon.PVSSParameters{
CommitInterval: epochInterval / 2,
RevealInterval: (epochInterval / 2) - 4,
TransitionDelay: 4,
}
}

return ff, nil
Expand Down

0 comments on commit 02d20b3

Please sign in to comment.