mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 11:57:56 +00:00
additional log in finality relay + rephrase "failed" (#1182)
This commit is contained in:
committed by
Bastian Köcher
parent
2c608cbb29
commit
44a6416ffc
@@ -484,6 +484,14 @@ pub(crate) async fn read_missing_headers<
|
||||
header_number = header_number + One::one();
|
||||
}
|
||||
|
||||
log::trace!(
|
||||
target: "bridge",
|
||||
"Read {} {} headers. Selected finality proof for header: {:?}",
|
||||
best_number_at_source.saturating_sub(best_number_at_target),
|
||||
P::SOURCE_NAME,
|
||||
selected_finality_proof.as_ref().map(|(header, _)| header),
|
||||
);
|
||||
|
||||
Ok(match selected_finality_proof {
|
||||
Some((header, proof)) => SelectedFinalityProof::Regular(unjustified_headers, header, proof),
|
||||
None => SelectedFinalityProof::None(unjustified_headers),
|
||||
@@ -584,7 +592,7 @@ pub(crate) fn select_better_recent_finality_proof<P: FinalitySyncPipeline>(
|
||||
buffered_range_begin,
|
||||
buffered_range_end,
|
||||
selected_header_number,
|
||||
if has_selected_finality_proof { "improved" } else { "failed" },
|
||||
if has_selected_finality_proof { "improved" } else { "not improved" },
|
||||
);
|
||||
if !has_selected_finality_proof {
|
||||
return selected_finality_proof
|
||||
|
||||
Reference in New Issue
Block a user