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

[r2r] Fix P2P OrdermatchRequest backward compatibility. #1406

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

artemii235
Copy link
Member

New enum variants should be added to the end to keep the rmp_serde serialization numeration.

Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

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

🔥

Copy link
Member

@laruh laruh left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

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

LGTM! I think we should add a comment about this on top of all enum variants that are used in P2P messages to not forget about it, similar to this https://github.com/KomodoPlatform/atomicDEX-API/blob/2af959c8ba514191b967c93cb86cb009d4dc1b0c/mm2src/mm2_main/src/lp_ordermatch.rs#L3713-L3716

Copy link
Member

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

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

LGTM. Agree with @shamardy, a doc-comment would be great for the developers.

@artemii235
Copy link
Member Author

LGTM! I think we should add a comment about this on top of all enum variants that are used in P2P messages to not forget about it, similar to this

LGTM. Agree with @shamardy, a doc-comment would be great for the developers.

@ozkanonur Will add in the dev branch after merging this hotfix 🙂

@artemii235 artemii235 merged commit cfb031a into mm2.1 Jul 28, 2022
@artemii235 artemii235 deleted the ordermatch-request-compatibility-hotfix branch July 28, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants