Reward validators for participating in parachains (#2089)

* plumbing for rewarding backers

* give validators reward points for participating

* fix tests

* add bitfield rewarding

* add mocks for backing rewards

* add testing for backing & availability rewards

* implement RewardValidators on top of staking

* add to test-runtime and rococo

* add to test-runtime & rococo

* point to source on rewards values

* fix common tests

* do not reward availability anymore
This commit is contained in:
Robert Habermeier
2020-12-16 11:28:46 -06:00
committed by GitHub
parent 34e5812171
commit f4e930529b
8 changed files with 206 additions and 7 deletions
+2
View File
@@ -78,6 +78,7 @@ use runtime_parachains::dmp as parachains_dmp;
use runtime_parachains::ump as parachains_ump;
use runtime_parachains::hrmp as parachains_hrmp;
use runtime_parachains::scheduler as parachains_scheduler;
use runtime_parachains::reward_points::RewardValidatorsWithEraPoints;
pub use pallet_balances::Call as BalancesCall;
pub use pallet_staking::StakerStatus;
@@ -538,6 +539,7 @@ impl parachains_configuration::Config for Runtime {}
impl parachains_inclusion::Config for Runtime {
type Event = Event;
type RewardValidators = RewardValidatorsWithEraPoints<Runtime>;
}
impl parachains_paras::Config for Runtime {