Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

refactor: improve batch preflight processing with enhanced indexing - #690

Merged
smtmfft merged 1 commit into
hotfix/hotfix-based-on-1.16.1from
hotfix-prefight
Apr 29, 2026
Merged

refactor: improve batch preflight processing with enhanced indexing#690
smtmfft merged 1 commit into
hotfix/hotfix-based-on-1.16.1from
hotfix-prefight

Conversation

@smtmfft

@smtmfft smtmfft commented Apr 28, 2026

Copy link
Copy Markdown
Contributor
  • Introduced a batch_block_offset to track the starting index of each task batch.
  • Updated the transaction processing loop to include the batch index for the first block in a proposal, ensuring compliance with Shasta anchor rules.
  • Enhanced the RethBlockBuilder initialization to reflect whether the current block is the first in the proposal batch.

- Introduced a `batch_block_offset` to track the starting index of each task batch.
- Updated the transaction processing loop to include the batch index for the first block in a proposal, ensuring compliance with Shasta anchor rules.
- Enhanced the `RethBlockBuilder` initialization to reflect whether the current block is the first in the proposal batch.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors batch preflight execution to correctly track each block’s position within the overall proposal batch (even when processed in parallel chunks), so Shasta-specific “first block” anchor rules are applied only where intended.

Changes:

  • Introduces a cross-chunk batch_block_offset to compute a stable global batch index per block.
  • Updates the per-block processing loop to derive batch_block_idx and pass is_first_block_in_proposal into RethBlockBuilder.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/src/preflight/mod.rs
Comment thread core/src/preflight/mod.rs
@smtmfft
smtmfft merged commit 7856bc0 into hotfix/hotfix-based-on-1.16.1 Apr 29, 2026
7 checks passed
@smtmfft
smtmfft deleted the hotfix-prefight branch April 29, 2026 02:57
smtmfft added a commit that referenced this pull request May 21, 2026
…690)

- Introduced a `batch_block_offset` to track the starting index of each task batch.
- Updated the transaction processing loop to include the batch index for the first block in a proposal, ensuring compliance with Shasta anchor rules.
- Enhanced the `RethBlockBuilder` initialization to reflect whether the current block is the first in the proposal batch.

(cherry picked from commit 7856bc0)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants