Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

swap: fixed bug which needs cheques to be confirmed#1937

Merged
holisticode merged 3 commits intomasterfrom
incentives-pending-cheques
Nov 11, 2019
Merged

swap: fixed bug which needs cheques to be confirmed#1937
holisticode merged 3 commits intomasterfrom
incentives-pending-cheques

Conversation

@holisticode
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member

@ralph-pichler ralph-pichler left a 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.

Copy link
Copy Markdown
Member

@janos janos left a 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.

@holisticode
Copy link
Copy Markdown
Contributor Author

Thanks @janos for catching those races. I made fixes.

Copy link
Copy Markdown
Member

@janos janos left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

@holisticode holisticode merged commit 2312b32 into master Nov 11, 2019
@mortelli mortelli deleted the incentives-pending-cheques branch November 11, 2019 20:57
@acud acud added this to the 0.5.3 milestone Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update swap simulation tests for pending cheques

4 participants