Skip to content

Commit

Permalink
Fix misleading comment about RewardHandler in epm config (paritytech#…
Browse files Browse the repository at this point in the history
…3095)

In pallet_election_provider_multi_phase::Config, the effect of

       type RewardHandler = ()

is to mint rewards from the void, not "nothing to do upon rewards"

Co-authored-by: navigaid <navigaid@gmail.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
  • Loading branch information
3 people authored and TarekkMA committed Aug 2, 2024
1 parent 61749e6 commit 677532d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polkadot/runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
<Self::MinerConfig as pallet_election_provider_multi_phase::MinerConfig>::MaxWeight;
type MinerConfig = Self;
type SlashHandler = (); // burn slashes
type RewardHandler = (); // nothing to do upon rewards
type RewardHandler = (); // rewards are minted from the void
type BetterSignedThreshold = ();
type OffchainRepeat = OffchainRepeat;
type MinerTxPriority = NposSolutionPriority;
Expand Down
2 changes: 1 addition & 1 deletion substrate/bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ impl pallet_election_provider_multi_phase::Config for Runtime {
type SignedDepositWeight = ();
type SignedMaxWeight = MinerMaxWeight;
type SlashHandler = (); // burn slashes
type RewardHandler = (); // nothing to do upon rewards
type RewardHandler = (); // rewards are minted from the void
type DataProvider = Staking;
type Fallback = onchain::OnChainExecution<OnChainSeqPhragmen>;
type GovernanceFallback = onchain::OnChainExecution<OnChainSeqPhragmen>;
Expand Down

0 comments on commit 677532d

Please sign in to comment.