|
1 | 1 | diff --git a/lib/Xud.ts b/lib/Xud.ts
|
2 |
| -index 810345d90..9585a2761 100644 |
| 2 | +index b50acec47..bfd7a86d6 100644 |
3 | 3 | --- a/lib/Xud.ts
|
4 | 4 | +++ b/lib/Xud.ts
|
5 | 5 | @@ -87,6 +87,11 @@ class Xud extends EventEmitter {
|
@@ -36,7 +36,7 @@ index f077b3ca4..7398a97b4 100644
|
36 | 36 | }
|
37 | 37 |
|
38 | 38 | diff --git a/lib/swaps/Swaps.ts b/lib/swaps/Swaps.ts
|
39 |
| -index fd7024fa2..d469ce7ac 100644 |
| 39 | +index 5ee168fa9..f0a3b879d 100644 |
40 | 40 | --- a/lib/swaps/Swaps.ts
|
41 | 41 | +++ b/lib/swaps/Swaps.ts
|
42 | 42 | @@ -205,9 +205,28 @@ class Swaps extends EventEmitter {
|
@@ -110,9 +110,9 @@ index fd7024fa2..d469ce7ac 100644
|
110 | 110 | + return;
|
111 | 111 | + }
|
112 | 112 | } catch (err) {
|
113 |
| - if (err.code === errorCodes.PAYMENT_REJECTED) { |
114 |
| - // if the maker rejected our payment, the swap failed due to an error on their side |
115 |
| -@@ -933,12 +972,29 @@ class Swaps extends EventEmitter { |
| 113 | + // first we must handle the edge case where the maker has paid us but failed to claim our payment |
| 114 | + // in this case, we've already marked the swap as having been paid and completed |
| 115 | +@@ -939,12 +978,29 @@ class Swaps extends EventEmitter { |
116 | 116 |
|
117 | 117 | this.logger.debug('Executing maker code to resolve hash');
|
118 | 118 |
|
@@ -142,7 +142,7 @@ index fd7024fa2..d469ce7ac 100644
|
142 | 142 | deal.rPreimage = await swapClient.sendPayment(deal);
|
143 | 143 | return deal.rPreimage;
|
144 | 144 | } catch (err) {
|
145 |
| -@@ -968,6 +1024,16 @@ class Swaps extends EventEmitter { |
| 145 | +@@ -974,6 +1030,16 @@ class Swaps extends EventEmitter { |
146 | 146 | assert(htlcCurrency === undefined || htlcCurrency === deal.takerCurrency, 'incoming htlc does not match expected deal currency');
|
147 | 147 | this.logger.debug('Executing taker code to resolve hash');
|
148 | 148 |
|
|
0 commit comments