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:
Rusty Russell 2018-02-16 12:29:45 +10:30 committed by Christian Decker
parent c5cc5c5c1b
commit 65593d4a98
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}