File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 249249
250250
251251if [[ $1 == " swapserver_forceclose" ]]; then
252+ # Alice starts reverse-swap with Bob.
253+ # Alice sends hold-HTLCs via LN, Bob funds locking script onchain.
254+ # Bob force-closes the channel, before swap-funding-tx gets mined.
255+ # After swap-funding-tx gets mined, Alice broadcasts onchain claim tx, revealing preimage.
256+ # Bob finds preimage onchain, and creates HTLC-success tx to spend own ctx htlc output onchain.
252257 wait_for_balance alice 1
253258 echo " alice opens channel"
254259 bob_node=$( $bob nodeid)
278283
279284
280285if [[ $1 == " swapserver_refund" ]]; then
286+ # Alice starts reverse-swap with Bob.
287+ # Alice sends hold-HTLCs via LN, Bob funds locking script onchain.
288+ # Alice never broadcasts onchain claim tx. Bob will use timeout path onchain.
289+ # Then Bob fails hold-HTLCs via LN.
290+ # Channel stays open.
281291 $alice setconfig test_swapserver_refund true
282292 wait_for_balance alice 1
283293 echo " alice opens channel"
You can’t perform that action at this time.
0 commit comments