mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
chaintopology: don't start fee estimation loop until we're fully active.
This interacts badly with --daemon (next patch) which then tries to reap a child it didn't create, which took me a couple of hours to figure out. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c5cc5c5c1b
commit
65593d4a98
@ -726,14 +726,14 @@ void setup_topology(struct chain_topology *topo,
|
||||
|
||||
tal_add_destructor(topo, destroy_chain_topology);
|
||||
|
||||
/* Begin fee estimation. */
|
||||
start_fee_estimate(topo);
|
||||
|
||||
/* Once it gets initial block, it calls io_break() and we return. */
|
||||
io_loop(NULL, NULL);
|
||||
}
|
||||
|
||||
void begin_topology(struct chain_topology *topo)
|
||||
{
|
||||
/* Begin fee estimation. */
|
||||
start_fee_estimate(topo);
|
||||
|
||||
try_extend_tip(topo);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user