-
Notifications
You must be signed in to change notification settings - Fork 44
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: added check for peer's pairs on order invalidation #1864
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.
Thanks for addressing this, it's a minor fix but makes sense and will make the logs cleaner.
|
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.
above
I would do this in a separate PR, although this is a good idea. Just don't want this one to get too big or complicated. |
Alight, I'll check this point within this PR. |
I added a new check as per @raladev's request, now we won't send NodeStateUpdate packet when adding/removing a pair if this pair is not active in the peer. |
Not sure that it is correct fix, we still want to get info about pairs that we dont have, but we dint need info about orders. So, more correct would be remove GetOrders call in this case |
I see, let me check it this way then |
fixed |
but i still dont see the code for handling of GetOrders autocall on remote peer side. |
I thought this would be sufficient https://github.com/ExchangeUnion/xud/pull/1864/files#diff-1934dba4817446d9f1708503332eb124R731 |
|
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.
above
Alright let me recheck |
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.
This looks good to me. Let's handle the GetOrders
packet in another PR, I think the change here can stand on its own and fixes the behavior with the order invalidation packets that are mentioned in the original issue.
8bd9f06
to
88f38f3
Compare
88f38f3
to
822418a
Compare
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.
I thought we didn't want to mess with nodestateupdate packets in this PR? I was ready to merge this before the most recent commit. Let's try to keep the scope of PRs small and manageable, we can open separate PRs for separate issues.
No no I didn't mean to mess with it, could you please check "files changed", I just was trying to sign the previous commits to make them mergeable. |
last commit is revert of not worked fix for GetOrder
Merging is still blocked, because previous commits were not signed. Maybe you can squash commits into one first, then sign and force push to this branch. That should do the trick. @rsercano |
Got it, sorry that commit just confused me. So the current changes look good to me, if you can squash and sign these commits like kilrau said that would be great. Otherwise I can do it sometime tomorrow. |
I'm opening a new one #1890 sorry for the confusion, squashing looks like a pain since there're several commits between my commits, or Im literally too bad to do it! |
attempts to fix #1530
Not sure if there's any other order event to check, also it would be great if you can tell me if I have to check pair's active status before emitting the event.