Commit 86d2b20
fix(lnd): waitForReady infinite deadline (#1152)
This fixes a bug where the first attempt to verify a connection to
lnd would fail on the first attempt due to the `deadline` of 0 for the
`waitForReady` being exceeded immediately with the latest version of
lnd. Subsequent attempts would not exceed the deadline.
Instead, this always uses a deadline of infinity meaning xud will
always wait for lnd to be online before it attempts a `GetInfo` call
to verify the connection. This leverages the recently added
`verifyConnectionWithTimeout` logic to timeout the initial connection
verification if lnd remains offline so that it doesn't hold up the
xud initialization procedure.1 parent 7737da8 commit 86d2b20
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
| 243 | + | |
246 | 244 | | |
247 | 245 | | |
248 | 246 | | |
| |||
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
313 | | - | |
314 | | - | |
| 311 | + | |
| 312 | + | |
315 | 313 | | |
316 | 314 | | |
317 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
0 commit comments