Skip to content

p2p: Prevent inaccurate missing spans when adding a block#10303

Open
j-berman wants to merge 1 commit intomonero-project:masterfrom
j-berman:span-synchronization
Open

p2p: Prevent inaccurate missing spans when adding a block#10303
j-berman wants to merge 1 commit intomonero-project:masterfrom
j-berman:span-synchronization

Conversation

@j-berman
Copy link
Collaborator

@j-berman j-berman commented Feb 4, 2026

This prevents a data race where the request_missing_objects function ends up thinking a block span is missing when really the block(s) just got added to the db.

Solves the last known cause of "runaway spans" identified on the stressnet.

This PR is arguably not an ideal solution (it jams a lock into the center of 2 large functions and carries some risk of deadlock), but barring a major rewrite to the sync protocol, it seemed the best short/medium term improvement to this section to me.

seraphis-migration#275

Copy link
Contributor

@navidR navidR left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you

@nahuhh
Copy link
Contributor

nahuhh commented Feb 25, 2026

cc @jeffro256 would be good to have this merged before fcmp++-stage rebases again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants