-
Notifications
You must be signed in to change notification settings - Fork 42
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
remove order is not being send to peers #767
Comments
Looks like this is a similar bug/cause as #758, where superfluous fields are being hashed by the sender for the Order Invalidation packet and then failing validation on the receiver's end, thus the orders are not being invalidated by the receiver. |
This fixes a bug where the hash calculated for outgoing order invalidation packets wouldn't match the calculated hash for the packet received by the peer due to the order objects being hashed having extraneous properties that are not transmitted to the peer. This would cause the order invalidations to be ignored by the receiver. Fixes #767.
@sangaman Not solved. |
Looks like this is the key change that needed to happen in addition to my fix above, OrderInvalidationPackets were being converted into the wrong type of packet. 27e289b Thanks offer for finding this. |
My node (A) is connected to xud1,2,3.
listorders shows 2 x sell [email protected] (one order from xud1 and one order with xud2).
Using CLI:
I swap with one of the nodes (xud1 in this case):
Post swap the sell order is replaced by the bot on xud1 and my node shows again 2 sell orders.
checking
xucli getorders
on xud3 shows 3 x sell [email protected] (one from xud3 and TWO from xud1).The log does not show any remove order from xud1.
Very easy to reproduce.
The text was updated successfully, but these errors were encountered: