Commit d0aa1b93 authored by Peter Goodspeed-Niklaus's avatar Peter Goodspeed-Niklaus
Browse files

Revert "BROKEN: add note if the current block matches the session start block"

This reverts commit eeb79ab7.
parent eeb79ab7
Pipeline #120183 canceled with stages
in 14 minutes and 57 seconds
......@@ -34,7 +34,7 @@ use frame_support::{
use frame_system::ensure_none;
use crate::{
inclusion,
scheduler::{self, FreedReason, SessionStartBlock},
scheduler::{self, FreedReason},
ump,
};
use inherents::{InherentIdentifier, InherentData, MakeFatalError, ProvideInherent};
......@@ -176,7 +176,7 @@ fn limit_backed_candidates<T: Config>(
}
}
impl<T: Config + frame_system::Config<BlockNumber = T>> ProvideInherent for Module<T> {
impl<T: Config> ProvideInherent for Module<T> {
type Call = Call<T>;
type Error = MakeFatalError<()>;
const INHERENT_IDENTIFIER: InherentIdentifier = INCLUSION_INHERENT_IDENTIFIER;
......@@ -206,13 +206,6 @@ impl<T: Config + frame_system::Config<BlockNumber = T>> ProvideInherent for Modu
an invalid inclusion inherent: {:?}",
err,
);
if SessionStartBlock::get() == <frame_system::Module<T>>::block_number() {
frame_support::debug::info!(
target: "runtime_inclusion_inherent",
"this is the first block of the session, so dropping the signed bitfields and \
backed candidates is not unexpected",
);
}
(Vec::new().into(), Vec::new())
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment