Improve parachain liveness by reducing required number of backing votes (#5016)

* Let node side take advantage reduced requirements

in the runtime and hopefully improve liveness of parachains by means of
that.

* Fix tests.
This commit is contained in:
Robert Klotzner
2022-03-08 21:33:55 +01:00
committed by GitHub
parent 209c129899
commit acaf0d84fe
3 changed files with 86 additions and 59 deletions
@@ -168,6 +168,9 @@ impl<H> Default for ProcessedCandidates<H> {
}
/// Number of backing votes we need for a valid backing.
///
/// WARNING: This check has to be kept in sync with the node side check in the backing
/// subsystem.
pub fn minimum_backing_votes(n_validators: usize) -> usize {
// For considerations on this value see:
// https://github.com/paritytech/polkadot/pull/1656#issuecomment-999734650