Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
d0aa1b93
Commit
d0aa1b93
authored
Jan 14, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
runtime/parachains/src/inclusion_inherent.rs
View file @
d0aa1b93
...
...
@@ -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
())
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment