Browse Source

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>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
65593d4a98
  1. 6
      lightningd/chaintopology.c

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

Loading…
Cancel
Save