Commit cbd3a0c
authored
fix(backend): deadlocks (#3320)
* feat: cache fees
* feat: fix deadlocks
- fixes deadlocks by ensuring we dont open new connections before resolving open transactions
- forced knex connections to 1 to help find these cases
* feat: add local payment test script
* feat: use fee cache instead of withGraphFetched
* chore: cleanup comments, test config
* chore: format
* chore: rm logs, commented out code
* fix(backend): out payment service tests
- payment returned from createOutgoingPayment previously
had walletAddress of undefined
(coming from withGraphFetched(quote)).
When assigning manually it included wallet address.
Updated get methods to include wallet address on quote as well.
* test(backend): fix some quote tests
* chore: cleanup comments, join on fees again, fix test
* chore: rm comment, restore comment
* fix: quote, outgoing payment tests
* chore: rm comment
* fix(performance): local test to use incoming payment, not receiver
* fix: rm unused arg
* chore: ignore k6 test text output
* fix(backend): too many args passed into calculateExpiry
* feat(backend): add saveAdditionalQuoteDetails
* Revert "feat(backend): add saveAdditionalQuoteDetails"
This reverts commit 8e00526.
* feat(backend): rm comment1 parent 14ddf4d commit cbd3a0c
8 files changed
Lines changed: 573 additions & 329 deletions
File tree
- packages/backend/src
- fee
- open_payments
- payment/outgoing
- quote
- tests
- test/performance/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | | - | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | | - | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
63 | 87 | | |
64 | 88 | | |
65 | 89 | | |
66 | 90 | | |
67 | 91 | | |
68 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
69 | 99 | | |
70 | 100 | | |
71 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
72 | 106 | | |
73 | 107 | | |
74 | 108 | | |
| |||
86 | 120 | | |
87 | 121 | | |
88 | 122 | | |
89 | | - | |
| 123 | + | |
90 | 124 | | |
91 | 125 | | |
92 | 126 | | |
93 | 127 | | |
94 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
95 | 132 | | |
96 | 133 | | |
97 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
| 423 | + | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
| |||
513 | 514 | | |
514 | 515 | | |
515 | 516 | | |
516 | | - | |
| 517 | + | |
| 518 | + | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
| |||
0 commit comments