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
353cfc8e
Commit
353cfc8e
authored
3 years ago
by
Lldenaurois
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
node/service: Update finality target to fix disputes tests (#3732)
parent
47c75122
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
polkadot/node/service/src/relay_chain_selection.rs
+4
-4
4 additions, 4 deletions
polkadot/node/service/src/relay_chain_selection.rs
with
4 additions
and
4 deletions
polkadot/node/service/src/relay_chain_selection.rs
+
4
−
4
View file @
353cfc8e
...
...
@@ -415,7 +415,7 @@ where
let
lag
=
initial_leaf_number
.saturating_sub
(
subchain_number
);
self
.metrics
.note_approval_checking_finality_lag
(
lag
);
let
lag
=
if
cfg!
(
feature
=
"disputes"
)
{
let
(
lag
,
subchain_head
)
=
if
cfg!
(
feature
=
"disputes"
)
{
// Prevent sending flawed data to the dispute-coordinator.
if
Some
(
subchain_block_descriptions
.len
()
as
_
)
!=
subchain_number
.checked_sub
(
target_number
)
...
...
@@ -441,7 +441,7 @@ where
std
::
any
::
type_name
::
<
Self
>
(),
)
.await
;
let
(
subchain_number
,
_
subchain_head
)
=
rx
let
(
subchain_number
,
subchain_head
)
=
rx
.await
.map_err
(
Error
::
OverseerDisconnected
)
.map_err
(|
e
|
ConsensusError
::
Other
(
Box
::
new
(
e
)))
?
...
...
@@ -450,9 +450,9 @@ where
// The the total lag accounting for disputes.
let
lag_disputes
=
initial_leaf_number
.saturating_sub
(
subchain_number
);
self
.metrics
.note_disputes_finality_lag
(
lag_disputes
);
lag_disputes
(
lag_disputes
,
subchain_head
)
}
else
{
lag
(
lag
,
subchain_head
)
};
// 4. Apply the maximum safeguard to the finality lag.
...
...
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