Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

patches bug where the 1st coding shred is not inserted into blockstore (backport #25916)#26006

Merged
mergify[bot] merged 1 commit intov1.10from
mergify/bp/v1.10/pr-25916
Jun 16, 2022
Merged

patches bug where the 1st coding shred is not inserted into blockstore (backport #25916)#26006
mergify[bot] merged 1 commit intov1.10from
mergify/bp/v1.10/pr-25916

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Jun 16, 2022

This is an automatic backport of pull request #25916 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

#25916)

StandardBroadcastRun::insert skips 1st shred with index zero because
the 1st *data* shred is inserted synchronously:
https://github.com/solana-labs/solana/blob/53695ecd2/core/src/broadcast_stage/standard_broadcast_run.rs#L239-L246
https://github.com/solana-labs/solana/blob/53695ecd2/core/src/broadcast_stage/standard_broadcast_run.rs#L334-L339

#7481
which added this code was not inserting coding shreds into blockstore.
Starting with
#8899
coding shreds are inserted into blockstore as well as data shreds, but
the insert logic erroneously skips first coding shred because it does
not check if shred is code or data.

(cherry picked from commit eacb918)
@mergify mergify Bot added the automerge Merge this Pull Request automatically once CI passes label Jun 16, 2022
@mergify mergify Bot merged commit c1a210c into v1.10 Jun 16, 2022
@mergify mergify Bot deleted the mergify/bp/v1.10/pr-25916 branch June 16, 2022 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge this Pull Request automatically once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant