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

@@ -1419,7 +1419,7 @@ void activate_peers(struct lightningd *ld)
}
/* Pull peers, channels and HTLCs from db, and wire them up. */
void load_channels_from_wallet(struct lightningd *ld)
struct htlc_in_map *load_channels_from_wallet(struct lightningd *ld)
{
struct peer *peer;
@@ -1442,7 +1442,7 @@ void load_channels_from_wallet(struct lightningd *ld)
}
/* Now connect HTLC pointers together */
htlcs_reconnect(ld, &ld->htlcs_in, &ld->htlcs_out);
return htlcs_reconnect(ld, &ld->htlcs_in, &ld->htlcs_out);
}
static struct command_result *json_disconnect(struct command *cmd,