Update for using Mandatory inherents (#967)

* Update for using Mandatory inherents.

* use
This commit is contained in:
Gavin Wood
2020-04-05 14:27:58 +02:00
committed by GitHub
parent 15a83079ba
commit 7f838b0c35
3 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ decl_module! {
type Error = Error<T>;
/// Provide candidate receipts for parachains, in ascending order by id.
#[weight = SimpleDispatchInfo::FixedNormal(1_000_000)]
#[weight = SimpleDispatchInfo::FixedMandatory(1_000_000)]
pub fn set_heads(origin, heads: Vec<AttestedCandidate>) -> DispatchResult {
ensure_none(origin)?;
ensure!(!<DidUpdate>::exists(), Error::<T>::TooManyHeadUpdates);