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
@@ -73,6 +73,7 @@ use frame_support::{
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
use pallet_transaction_payment_rpc_runtime_api::RuntimeDispatchInfo;
use pallet_session::historical as session_historical;
use polkadot_runtime_parachains::reward_points::RewardValidatorsWithEraPoints;
#[cfg(feature = "std")]
pub use pallet_staking::StakerStatus;
@@ -446,6 +447,7 @@ impl parachains_configuration::Config for Runtime {}
impl parachains_inclusion::Config for Runtime {
type Event = Event;
type RewardValidators = RewardValidatorsWithEraPoints<Runtime>;
}
impl parachains_inclusion_inherent::Config for Runtime {}