|
@ -324,7 +324,6 @@ void channel_fail_permanent(struct channel *channel, const char *fmt, ...) |
|
|
va_list ap; |
|
|
va_list ap; |
|
|
char *why; |
|
|
char *why; |
|
|
struct channel_id cid; |
|
|
struct channel_id cid; |
|
|
u8 *msg; |
|
|
|
|
|
|
|
|
|
|
|
va_start(ap, fmt); |
|
|
va_start(ap, fmt); |
|
|
why = tal_vfmt(channel, fmt, ap); |
|
|
why = tal_vfmt(channel, fmt, ap); |
|
@ -349,10 +348,6 @@ void channel_fail_permanent(struct channel *channel, const char *fmt, ...) |
|
|
channel->error = towire_errorfmt(channel, &cid, "%s", why); |
|
|
channel->error = towire_errorfmt(channel, &cid, "%s", why); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* Tell gossipd we no longer need to keep connection to this peer */ |
|
|
|
|
|
msg = towire_gossipctl_peer_important(NULL, &channel->peer->id, false); |
|
|
|
|
|
subd_send_msg(ld->gossip, take(msg)); |
|
|
|
|
|
|
|
|
|
|
|
channel_set_owner(channel, NULL); |
|
|
channel_set_owner(channel, NULL); |
|
|
/* Drop non-cooperatively (unilateral) to chain. */ |
|
|
/* Drop non-cooperatively (unilateral) to chain. */ |
|
|
drop_to_chain(ld, channel, false); |
|
|
drop_to_chain(ld, channel, false); |
|
|