mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
peer_failed: hand fds back to master when we fail.
master now hands it back to gossipd. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -33,7 +33,7 @@ void peer_failed_(int peer_fd, int gossip_fd,
|
||||
msg = towire_status_peer_error(NULL, channel_id,
|
||||
desc, cs, gossip_index, msg);
|
||||
tal_free(desc);
|
||||
status_send_fatal(take(msg));
|
||||
status_send_fatal(take(msg), peer_fd, gossip_fd);
|
||||
}
|
||||
|
||||
/* We're failing because peer sent us an error message */
|
||||
@@ -44,10 +44,11 @@ void peer_failed_received_errmsg(int peer_fd, int gossip_fd,
|
||||
{
|
||||
u8 *msg = towire_status_peer_error(NULL, channel_id,
|
||||
desc, cs, gossip_index, NULL);
|
||||
status_send_fatal(take(msg));
|
||||
status_send_fatal(take(msg), peer_fd, gossip_fd);
|
||||
}
|
||||
|
||||
void peer_failed_connection_lost(void)
|
||||
{
|
||||
status_send_fatal(take(towire_status_peer_connection_lost(NULL)));
|
||||
status_send_fatal(take(towire_status_peer_connection_lost(NULL)),
|
||||
-1, -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user