Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
000df20
slot_based: Reduce authoring duration of the last produced block
lexnv Oct 29, 2025
3b0b715
slot_based: Update blocks produced regardless of runtime failures
lexnv Oct 29, 2025
34d6b7a
Update from github-actions[bot] running command 'prdoc --audience nod…
github-actions[bot] Oct 29, 2025
9c19866
Merge remote-tracking branch 'origin/master' into lexnv/adjust-aura-a…
lexnv Oct 30, 2025
774871b
slot_based: Detect when the slot changes
lexnv Oct 30, 2025
cccae18
Squashed commit of the following:
lexnv Oct 30, 2025
e5fa9f6
Squashed commit of the following:
lexnv Oct 31, 2025
e48868e
Merge remote-tracking branch 'origin/master' into lexnv/adjust-aura-a…
lexnv Oct 31, 2025
a82895f
Merge remote-tracking branch 'origin/lexnv/es-westend' into lexnv/adj…
lexnv Oct 31, 2025
7a21bad
slot_based: Adjust last block authoring by 1s
lexnv Nov 4, 2025
da80cea
slot-based: Skip building blocks in the last 1s of the slot
lexnv Nov 4, 2025
190a4ac
slot-based: Revert tracing info to baseline
lexnv Nov 4, 2025
0cd8b63
slot-based: Log inside the async task
lexnv Nov 4, 2025
aa01b93
Merge branch 'lexnv/es-westend' into lexnv/adjust-aura-auth-duration
lexnv Nov 5, 2025
4851062
slot-based: Add threashold for slot skipping
lexnv Nov 5, 2025
c943bdc
slot-timer: Downgrade logs to debug
lexnv Nov 5, 2025
32e1235
Update cumulus/client/consensus/aura/src/collators/slot_based/slot_ti…
lexnv Nov 7, 2025
624909f
slot_timer: Bump BLOCK_PRODUCTION_THRESHOLD_MS
lexnv Nov 7, 2025
a25b927
slot_based: Rename variables
lexnv Nov 7, 2025
6569846
slot_timer: Rename to time_until_next_block
lexnv Nov 7, 2025
6a47b55
slot_timer: Break into sep methods
lexnv Nov 7, 2025
3538f0d
slot_timer: Avoid calling into the runtime more than once
lexnv Nov 7, 2025
509b22a
slot_timer: Ensure to not adjust on one authority
lexnv Nov 7, 2025
0c7f02e
slot_timer/tests: Add tests fro compute_time_until_next_slot_change
lexnv Nov 7, 2025
2106f44
Update pr doc
lexnv Nov 7, 2025
dfcf0f7
slot-timer: Fix same author and add tests
lexnv Nov 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,26 @@ where
validation_data.max_pov_size * 85 / 100
} as usize;

let adjusted_authoring_duration = match slot_timer.time_until_next_slot() {
Ok((duration, _slot)) => std::cmp::min(authoring_duration, duration),
Err(_) => authoring_duration,
};

let adjusted_authoring_duration =
slot_timer.adjust_authoring_duration(authoring_duration);
tracing::debug!(target: crate::LOG_TARGET, duration = ?adjusted_authoring_duration, "Adjusted proposal duration.");

let Some(adjusted_authoring_duration) = adjusted_authoring_duration else {
tracing::debug!(
target: crate::LOG_TARGET,
unincluded_segment_len = parent.depth,
relay_parent = ?relay_parent,
relay_parent_num = %relay_parent_header.number(),
included_hash = ?included_header_hash,
included_num = %included_header.number(),
parent = ?parent_hash,
slot = ?para_slot.slot,
"Not building block due to insufficient authoring duration."
);

continue;
};

let Ok(Some(candidate)) = collator
.build_block_and_import(
&parent_header,
Expand Down
Loading
Loading