Skip to content

Fix Candidate Block Session Boundary - #12749

Open
naijauser wants to merge 3 commits into
paritytech:masterfrom
naijauser:11301-fix-candidate-session-boundary
Open

Fix Candidate Block Session Boundary#12749
naijauser wants to merge 3 commits into
paritytech:masterfrom
naijauser:11301-fix-candidate-session-boundary

Conversation

@naijauser

Copy link
Copy Markdown
Contributor

Advances #11301

Problem

get_block_ancestors returns all blocks irrespective of whether the block belongs to the same session or not. This may lead to wasted efforts since blocks that do not belong to the same session will not be accepted.

Solution

Filters the ancestor list inside get_block_ancestors so that only same-session ancestors are returned, which are pruned inside the PVF execute queue - Queue::prune_old_jobs.

@naijauser

Copy link
Copy Markdown
Contributor Author

/cmd prdoc --audience node_dev --bump patch

@naijauser

Copy link
Copy Markdown
Contributor Author

/cmd label T0-node

@paritytech-cmd-bot-polkadot-sdk paritytech-cmd-bot-polkadot-sdk Bot added the T0-node This PR/Issue is related to the topic “node”. label Jul 28, 2026
@naijauser
naijauser marked this pull request as ready for review July 28, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant