openingd: tell gossipd that the peer is important once funding tx in place.

And on channel_fail_permanent and closing (the two places we drop to
chain), we tell gossipd it's no longer important.

Fixes: #1316
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-04-25 22:07:38 +09:30
parent c9fa9817f6
commit 8c2c1fe1c2
9 changed files with 57 additions and 10 deletions

View File

@@ -61,9 +61,6 @@ struct peer *new_peer(struct lightningd *ld, u64 dbid,
/* Also removes from db. */
void delete_peer(struct peer *peer);
/* Tell gossipd to try to reconnect (unless --dev-no-reconnect) */
void try_reconnect(struct peer *peer);
struct peer *peer_by_id(struct lightningd *ld, const struct pubkey *id);
struct peer *peer_from_json(struct lightningd *ld,
const char *buffer,