-
Notifications
You must be signed in to change notification settings - Fork 110
swap: fixed bug which needs cheques to be confirmed #1937
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.
There are still other issues happening in the tests sometimes but they seem to be unrelated to the changes in this PR. The pending cheque bug appears to be fixed.
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 solving the issue. I can confirm that it is fixed by running test in the environment where failures happened frequently.
I have some comments related to data races, which should be easy to fix.
Thanks @janos for catching those races. I made fixes. |
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, LGTM.
This PR fixes a bug in simulation tests for swap, where sometimes, due to timing issues, the test may hang because a new cheque arrives and the old one is not confirmed yet.
Fixes #1933