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 authored and GitHub committed 2020-12-16 12:28:46 -05:00
1 parent 34e5812171
commit f4e930529b
8 files changed
+206 -7

No files matched your search

+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 {}