From 65593d4a981545b6409a12c230537ecddc4ddbf9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 16 Feb 2018 12:29:45 +1030 Subject: [PATCH] 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 --- lightningd/chaintopology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightningd/chaintopology.c b/lightningd/chaintopology.c index cac3cfe7f..33bc68346 100644 --- a/lightningd/chaintopology.c +++ b/lightningd/chaintopology.c @@ -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); }