Skip to content

Fix mismatch : subscribe book offers when both is true#684

Merged
cindyyan317 merged 1 commit intoXRPLF:developfrom
cindyyan317:sub_both
Jun 12, 2023
Merged

Fix mismatch : subscribe book offers when both is true#684
cindyyan317 merged 1 commit intoXRPLF:developfrom
cindyyan317:sub_both

Conversation

@cindyyan317
Copy link
Contributor

There is no document regarding this.
According to rippled's code,
When snapshot is true, we should return the list of the current offers.
When both is false, these offers put into offers field
When both is true, the original book's offers go to the 'bids' field, the reversed book's offers go to the 'asks' field.
'offers' will be present if any book in subscribed book list has snapshot being true but both being false.
'bids' 'asks' will be present if any book in subscribed book list has snapshot being true and both being true.

@cindyyan317 cindyyan317 requested a review from godexsoft June 9, 2023 15:20
Copy link
Collaborator

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

Looks good! 🚀

@cindyyan317 cindyyan317 marked this pull request as ready for review June 9, 2023 17:16
@cindyyan317 cindyyan317 merged commit 893315c into XRPLF:develop Jun 12, 2023
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