Companion for substrate/5686 (#1008)

* Companion for substrate/5686

* Update substrate
This commit is contained in:
Kian Paimani
2020-04-22 09:51:55 +02:00
committed by GitHub
parent ed9c8ce662
commit 97fed89079
8 changed files with 184 additions and 186 deletions
+4 -4
View File
@@ -35,8 +35,8 @@ use sp_staking::{
};
use frame_support::{
traits::KeyOwnerProofSystem,
dispatch::IsSubType,
weights::{SimpleDispatchInfo, Weight, MINIMUM_WEIGHT},
dispatch::{IsSubType},
weights::{DispatchClass, Weight, MINIMUM_WEIGHT},
};
use primitives::{
Balance,
@@ -571,7 +571,7 @@ decl_module! {
}
/// Provide candidate receipts for parachains, in ascending order by id.
#[weight = SimpleDispatchInfo::FixedMandatory(1_000_000_000)]
#[weight = (1_000_000_000, DispatchClass::Mandatory)]
pub fn set_heads(origin, heads: Vec<AttestedCandidate>) -> DispatchResult {
ensure_none(origin)?;
ensure!(!<DidUpdate>::exists(), Error::<T>::TooManyHeadUpdates);
@@ -651,7 +651,7 @@ decl_module! {
///
/// The weight is 0; in order to avoid DoS a `SignedExtension` validation
/// is implemented.
#[weight = SimpleDispatchInfo::FixedNormal(0)]
#[weight = 0]
pub fn report_double_vote(
origin,
report: DoubleVoteReport<