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
e210505a
Verified
Commit
e210505a
authored
Jul 22, 2021
by
Andronik Ordian
Browse files
REVERTME: some logs
parent
4c7e011f
Pipeline
#148575
passed with stages
in 38 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/service/src/relay_chain_selection.rs
View file @
e210505a
...
...
@@ -257,6 +257,7 @@ impl<B> SelectChain<PolkadotBlock> for SelectRelayChain<B>
target_hash
:
Hash
,
maybe_max_number
:
Option
<
BlockNumber
>
,
)
->
Result
<
Option
<
Hash
>
,
ConsensusError
>
{
tracing
::
info!
(
?
target_hash
,
?
maybe_max_number
,
"Calculating finality target"
);
if
self
.overseer
.is_disconnected
()
{
return
self
.fallback
.finality_target
(
target_hash
,
maybe_max_number
)
.await
}
...
...
@@ -276,7 +277,10 @@ impl<B> SelectChain<PolkadotBlock> for SelectRelayChain<B>
match
best
{
// No viable leaves containing the block.
None
=>
return
Ok
(
Some
(
target_hash
)),
None
=>
{
tracing
::
info!
(
?
target_hash
,
"No viable leaf containing the block"
);
return
Ok
(
Some
(
target_hash
))
},
Some
(
best
)
=>
best
,
}
};
...
...
@@ -343,6 +347,7 @@ impl<B> SelectChain<PolkadotBlock> for SelectRelayChain<B>
let
lag
=
initial_leaf_number
.saturating_sub
(
subchain_number
);
self
.metrics
.note_approval_checking_finality_lag
(
lag
);
tracing
::
info!
(
?
lag
,
"Approval checking finality lag"
);
// 3. Constrain according to disputes:
// TODO: https://github.com/paritytech/polkadot/issues/3164
...
...
Andronik Ordian
@ordian
mentioned in commit
116b8852
·
Jul 23, 2021
mentioned in commit
116b8852
mentioned in commit 116b8852e648d0a7ba89c75127edcd2902a3a133
Toggle commit list
Andronik Ordian
@ordian
mentioned in commit
2d197804
·
Jul 26, 2021
mentioned in commit
2d197804
mentioned in commit 2d197804024d3fd70a2aca6169e307f4d51b3b46
Toggle commit list
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