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

fix(session): allow synchronization across protocol version hot swaps #2522

Closed

Conversation

aesedepece
Copy link
Member

The Session actor includes logic that tells block candidates and inventory request responses apart by checking if the hash of the received block matches that of a former inventory request.

That was breaking synchronization for the case where a protocol change happened in the middle of a synchronization chunk.

This PR acts by first checking versioned hashes first for the incumbent protocol version, and if it can't find it, it also checks it for the first upcoming protocol.

@aesedepece aesedepece force-pushed the fix-sync-across-protocols branch 2 times, most recently from 6f641c1 to f83529e Compare November 14, 2024 18:26
@aesedepece aesedepece closed this Nov 19, 2024
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.

2 participants