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 backward compatibility issue with avatar version #1797

Merged

Conversation

HenrikJannsen
Copy link
Contributor

Use integer for version instead of a string and set initial version to 0. This avoids that it breaks backward compatibility as 0 is default value for integers and proto serialization does not change if that value is set or not.

FYI:
"if a scalar message field is set to its default, the value will not be serialized on the wire" - https://protobuf.dev/programming-guides/proto3/

…o 0. This avoids that it breaks backward compatibility as 0 is default value for integers and proto serialisation does not change if that value is set or not.
@namloan
Copy link
Contributor

namloan commented Mar 15, 2024

utACK

Copy link
Contributor

@alvasw alvasw left a comment

Choose a reason for hiding this comment

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

utACK

@alvasw alvasw merged commit b290d41 into bisq-network:main Mar 15, 2024
16 checks passed
@HenrikJannsen HenrikJannsen deleted the use-integer-as-avatar-version branch March 15, 2024 11:11
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.

3 participants