Unverified Commit a14bdf13 authored by Kian Paimani's avatar Kian Paimani Committed by GitHub
Browse files

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

parent 6da1cf62
Pipeline #160890 passed with stages
in 41 minutes and 31 seconds
......@@ -361,8 +361,8 @@ parameter_types! {
pub SignedRewardBase: Balance = UNITS / 10;
pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
// miner configs
pub OffchainRepeat: BlockNumber = 5;
// 1 hour session, 15 minutes unsigned phase, 8 offchain executions.
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 8;
/// 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
......
......@@ -385,8 +385,8 @@ parameter_types! {
pub SignedRewardBase: Balance = 1 * UNITS;
pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
// miner configs
pub OffchainRepeat: BlockNumber = 5;
// 4 hour session, 1 hour unsigned phase, 32 offchain executions.
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 32;
/// 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
......
......@@ -347,8 +347,8 @@ parameter_types! {
pub SignedRewardBase: Balance = 1 * UNITS;
pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
// miner configs
pub OffchainRepeat: BlockNumber = 5;
// 1 hour session, 15 minutes unsigned phase, 4 offchain executions.
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 4;
/// 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment