Re-configure offchain repeat frequency for elections (#3966)

This commit is contained in:
Kian Paimani
2021-10-06 17:51:47 +02:00
committed by GitHub
parent 4b9fc6460e
commit 7f3cfa124e
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -361,8 +361,8 @@ parameter_types! {
pub SignedRewardBase: Balance = UNITS / 10; pub SignedRewardBase: Balance = UNITS / 10;
pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
// miner configs // 1 hour session, 15 minutes unsigned phase, 8 offchain executions.
pub OffchainRepeat: BlockNumber = 5; pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 8;
/// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a /// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a
/// very large value. Once the `BagsList` is in full motion, staking might open its door to many /// very large value. Once the `BagsList` is in full motion, staking might open its door to many
+2 -2
View File
@@ -385,8 +385,8 @@ parameter_types! {
pub SignedRewardBase: Balance = 1 * UNITS; pub SignedRewardBase: Balance = 1 * UNITS;
pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
// miner configs // 4 hour session, 1 hour unsigned phase, 32 offchain executions.
pub OffchainRepeat: BlockNumber = 5; pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 32;
/// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a /// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a
/// very large value. Once the `BagsList` is in full motion, staking might open its door to many /// very large value. Once the `BagsList` is in full motion, staking might open its door to many
+2 -2
View File
@@ -347,8 +347,8 @@ parameter_types! {
pub SignedRewardBase: Balance = 1 * UNITS; pub SignedRewardBase: Balance = 1 * UNITS;
pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
// miner configs // 1 hour session, 15 minutes unsigned phase, 4 offchain executions.
pub OffchainRepeat: BlockNumber = 5; pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 4;
/// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a /// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a
/// very large value. Once the `BagsList` is in full motion, staking might open its door to many /// very large value. Once the `BagsList` is in full motion, staking might open its door to many