-
Notifications
You must be signed in to change notification settings - Fork 117
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
Reduce RFQ wire message type count #921
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a first pass and it looks great! Will probably want to run it through some manual and integration tests with the whole custom channel setup to make sure nothing breaks, so we might want to get in the other RFQ PR first.
Adding this method ensures that `WireMsgDataVersion` satisfies the record producer interface.
This commit introduces the `requestWireMsgData` type, encapsulating the fields present in a quote request wire message data field.
This commit refactors the `ToWire` methods for `BuyRequest` and `SellRequest` types to utilize the new `requestWireMsgData` type. This change unifies the wire message type integer for both buy and sell requests.
Having introduced the type `requestWireMsgData`, the inner type `buyRequestMsgData` is now unnecessary.
Having introduced the type `sellRequestMsgData`, the inner type `sellRequestMsgData` is now unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK, validated against the custom channel integration test, things still work as before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK ✔️
Issue: #914
This PR includes request message changes. It does not include accept message changes, however, should be ready for review and merge as is.