Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.18: patches bug in chained Merkle root update (backport of #1689) #1692

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jun 11, 2024

Problem

Option::ok_or_else always maps None to Err which is not what was intended in this code:
https://github.com/anza-xyz/agave/blob/362c60505/turbine/src/broadcast_stage/standard_broadcast_run.rs#L248-L254

Summary of Changes

removed ok_or_else.


This is an automatic backport of pull request #1689 done by [Mergify](https://mergify.com).

Option::ok_or_else always maps None to Err which is not what was intended in
this code.

(cherry picked from commit e804bcc)
@mergify mergify bot requested a review from a team as a code owner June 11, 2024 17:07
@behzadnouri
Copy link

This change has no functional impact because chained Merkle shreds are behind a feature which is not activated yet. So chained_merkle_root is unused.
However, it fixed the error log and the metric which is necessary for monitoring before we can activate chained Merkle shreds.

@behzadnouri behzadnouri requested a review from AshwinSekar June 11, 2024 17:08
@behzadnouri behzadnouri added the automerge automerge Merge this Pull Request automatically once CI passes label Jun 11, 2024
Copy link

@AshwinSekar AshwinSekar left a comment

Choose a reason for hiding this comment

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

For context, here is a report of such an error log in 1.18.16 https://discord.com/channels/428295358100013066/560174212967432193/1249982148870537297

@mergify mergify bot merged commit cb502b4 into v1.18 Jun 11, 2024
36 checks passed
@mergify mergify bot deleted the mergify/bp/v1.18/pr-1689 branch June 11, 2024 18:32
anwayde pushed a commit to firedancer-io/agave that referenced this pull request Jul 23, 2024
…z#1689) (anza-xyz#1692)

patches bug in chained Merkle root update (anza-xyz#1689)

Option::ok_or_else always maps None to Err which is not what was intended in
this code.

(cherry picked from commit e804bcc)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants