lightningd: delay reprocessing of incoming htlcs at startup until plugins ready.

Fixes: #2923
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-08-10 14:54:57 +09:30
committed by Christian Decker
parent f0ab4d72da
commit 049529542a
9 changed files with 48 additions and 27 deletions

View File

@@ -1195,7 +1195,7 @@ static bool test_htlc_crud(struct lightningd *ld, const tal_t *ctx)
"Failed loading HTLCs");
db_commit_transaction(w->db);
htlcs_reconnect(w->ld, htlcs_in, htlcs_out);
htlcs_resubmit(w->ld, htlcs_reconnect(w->ld, htlcs_in, htlcs_out));
CHECK(!wallet_err);
hin = htlc_in_map_get(htlcs_in, &in.key);