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

Commit

Permalink
add a log
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Jul 27, 2023
1 parent 07a575b commit e37ab0a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/consensus/aura/src/collators/lookahead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,19 @@ where
let mut parent_hash = initial_parent.hash;
let mut parent_header = initial_parent.header;
let overseer_handle = &mut params.overseer_handle;
loop {
for n_built in 0.. {
let slot_claim = match can_build_upon(parent_hash).await {
None => break,
Some(c) => c,
};

tracing::debug!(
target: crate::LOG_TARGET,
?relay_parent,
unincluded_segment_len = initial_parent.depth + n_built,
"Slot claimed. Building"
);

let validation_data = PersistedValidationData {
parent_head: parent_header.encode().into(),
relay_parent_number: *relay_parent_header.number(),
Expand Down

0 comments on commit e37ab0a

Please sign in to comment.