lightningd/io_loop_with_timers.c: Move mainloop to its own source file, have chaintopology use it#2690
Conversation
|
Alternate solution for #2687 is to just fudge the fee estimation at the start. |
|
Missing a |
|
For that matter, why does |
I did that to better encapsulate the plugins and make sure we have full control over the timers we create (in the same allocation hierarchy). |
|
Am I correct in assuming the issue is that we don't process timers when starting the topology, therefore a failed fee estimate or a failed first block fetch will result in us hanging indefinitely? |
Yes, I believe so. |
9b53610 to
292fa58
Compare
Signed-off-by: Christian Decker <decker.christian@gmail.com>
…e, have chaintopology use it. Fixes: ElementsProject#2687
292fa58 to
cb0b9f7
Compare
|
I took the liberty of add a test that reproduces #2687 first, this way we make sure the fix works and we don't get a regression later :-) |
|
ACK 592db38 Your test 592db38 without the fix properly xfails and demonstates the issue after a timeout of 70 seconds or so. It is also properly fixed by cb0b9f7 . I have some unrelated flakes sometimes okay sometimes not when running locally, but behaves same on master with or without this fix:
|
Fixes: #2687