-
Notifications
You must be signed in to change notification settings - Fork 43
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
Breaking swaps
tests
#942
Comments
@moshababo as per call the idea is to integrate this into the simulation tests. Thinks to consider by @moshababo :
|
Known CLTV issues: #1043 |
This was referenced Jul 1, 2019
First step towards a graceful handling of above scenarios: #1079 |
I think we can close here once #1204 is merged and continue tracking there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue collects scenarios for tests which intend to break the swap protocol:
1. swap partners a) go offline or b) become unresponsive (socket open, but stalling) in various states of the swap:
swapAccepted
swapAccepted
settleinvoice
) (to be fixed: security: taker can lock maker funds without getting his funds locked #1049)settleinvoice
)settleinvoice
) (maker doesn't getswapCompleted
message)swapCompleted
message) (to be fixed: security: maker can lose funds due to a crash #1050)2. swap partners a) force-close or b) cooperatively close channels in various states of the swap:
swapResponse
swapResponse
settleinvoice
)settleinvoice
)swapCompleted
message)swapCompleted
message)3. Change currency ticker/token address (after #910 is merged)
swapResponse
swapResponse
.swapResponse
.swapResponse
swapCompleted
message)4. TBD: send more/less
5. TBD: change amounts in
xud
p2p communication6. TBD: testnet/mainnet mix
7. TBD: send/receive orders over channel/payment size limit
8. TBD: alter cltv delta to sth short, try to trick trading partner to accept it
9. TBD: other misc p2p message alteration
10. TBD: change xud
nodePubKey
after successful connection on p2p layer**All tests are done for all supported pairs in both directions:
Since some of these intend to exploit delays, tests need to mine blocks quick to simulate the waiting time and check if funds were successfully returned. The general idea is to create different xud versions for the scenarios.
The text was updated successfully, but these errors were encountered: