Skip to content

Build block proposal earlier; Simplify block building (PR #1168)#119

Merged
uink45 merged 3 commits into
mainfrom
devnet-5
Jun 29, 2026
Merged

Build block proposal earlier; Simplify block building (PR #1168)#119
uink45 merged 3 commits into
mainfrom
devnet-5

Conversation

@uink45

@uink45 uink45 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

uink45 added 3 commits June 27, 2026 11:48
Add support for prebuilding validator block proposals and reusing them when proposing. Introduces prepared_block_proposal_job and prebuilt_proposal_signature_slot in the client and initializes/cleans them. validator_prepare_block_proposal_job gains a prebuild flag (uses fork choice for parent selection when prebuilding) and records prebuilt slot. The block proposal worker can accept checks were added; process_block_proposal_job now returns a bool and can stash a prepared job instead of freeing it. New validator_start_block_proposal_job helper and validator_maybe_prebuild_next_proposal (triggered in VOTE_ACCEPT) attempt to prebuild the next slot. stop_block_proposal_worker now frees any prepared job.
@uink45 uink45 changed the title Use the head state's justified checkpoint as the source Build block proposal earlier; Simplify block building (PR #1168) Jun 29, 2026
@uink45 uink45 merged commit 2ab1698 into main Jun 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant