Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
4be66c02
Unverified
Commit
4be66c02
authored
2 months ago
by
Sebastian Kunert
Browse files
Options
Downloads
Patches
Plain Diff
Always allow building on the included block.
parent
f7baa84f
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cumulus/client/consensus/aura/src/collators/mod.rs
+8
-6
8 additions, 6 deletions
cumulus/client/consensus/aura/src/collators/mod.rs
with
8 additions
and
6 deletions
cumulus/client/consensus/aura/src/collators/mod.rs
+
8
−
6
View file @
4be66c02
...
...
@@ -179,12 +179,14 @@ where
let
authorities
=
runtime_api
.authorities
(
parent_hash
)
.ok
()
?
;
let
author_pub
=
aura_internal
::
claim_slot
::
<
P
>
(
para_slot
,
&
authorities
,
keystore
)
.await
?
;
let
Ok
(
Some
(
api_version
))
=
runtime_api
.api_version
::
<
dyn
AuraUnincludedSegmentApi
<
Block
>>
(
parent_hash
)
else
{
return
(
parent_hash
==
included_block
)
.then
(||
SlotClaim
::
unchecked
::
<
P
>
(
author_pub
,
para_slot
,
timestamp
));
};
if
parent_hash
==
included_block
{
return
Some
(
SlotClaim
::
unchecked
::
<
P
>
(
author_pub
,
para_slot
,
timestamp
));
}
let
api_version
=
runtime_api
.api_version
::
<
dyn
AuraUnincludedSegmentApi
<
Block
>>
(
parent_hash
)
.ok
()
.flatten
()
?
;
let
slot
=
if
api_version
>
1
{
relay_slot
}
else
{
para_slot
};
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment