Test Details Overview

Derive the online representative cutoff from the election lifetime (#5317)

* Move election constants into their own network params group

The election pacing timings and the election loop interval were
scalars in `network_constants`, the election lifetimes literals in
`election::time_to_live ()`, the vote cooldowns literals in
`calculate_vote_cooldown` and the quorum percentage a static member of
`online_reps`. They are now fields of `election_constants`, exposed as
`network_params.election`.

`election_pacing` takes the group in place of its own parameter struct,
which mirrored the timings field by field.

* Derive the online representative cutoff from the election lifetime

A tally weighs every vote an election holds, while the quorum delta
counts only the representatives that are online. The time a
representative stays online after its last vote was twice the weight
sampling interval, which matched twice the election lifetime only
because the two constants happened to be equal, and did not on the dev
network.

The cutoff is now a field of `election_constants` that defaults to
twice the longest election lifetime, and `online_reps` asserts that
relation when it is constructed.

__________

Type: commit

Hash: b4543f7eb8240e3567bf8b983049708c8ec18103

Created: today

__________

gr0v1ty/nano-node:b4543f7eb8240e3567bf8b983049708c8ec18103

Test Results

Test Case Status Duration Median Deviation Log Graph
No test results available yet. Check the GitHub test run for job status and logs.