mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Companion to Split SolutionImprovementThresholds into two types (#5324)
* Splitting `SolutionImprovementThreshold` in 2.
One for Signed phase, and one for Unsgined.
* Adding missing imports
* Removing `GetDefault`, renaming trait
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -350,7 +350,7 @@ parameter_types! {
|
||||
pub const SignedDepositByte: Balance = deposit(0, 10) / 1024;
|
||||
// Each good submission will get 1 WND as reward
|
||||
pub SignedRewardBase: Balance = 1 * UNITS;
|
||||
pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
|
||||
pub BetterUnsignedThreshold: Perbill = Perbill::from_rational(5u32, 10_000);
|
||||
|
||||
// 1 hour session, 15 minutes unsigned phase, 4 offchain executions.
|
||||
pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 4;
|
||||
@@ -394,7 +394,8 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
|
||||
type SignedMaxWeight = Self::MinerMaxWeight;
|
||||
type SlashHandler = (); // burn slashes
|
||||
type RewardHandler = (); // nothing to do upon rewards
|
||||
type SolutionImprovementThreshold = SolutionImprovementThreshold;
|
||||
type BetterUnsignedThreshold = BetterUnsignedThreshold;
|
||||
type BetterSignedThreshold = ();
|
||||
type MinerMaxWeight = OffchainSolutionWeightLimit; // For now use the one from staking.
|
||||
type MinerMaxLength = OffchainSolutionLengthLimit;
|
||||
type OffchainRepeat = OffchainRepeat;
|
||||
|
||||
Reference in New Issue
Block a user