Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
REVERTME: some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Jul 22, 2021
1 parent 4c7e011 commit e210505
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion node/service/src/relay_chain_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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,
}
};
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e210505

Please sign in to comment.