channel: Disable channels that are lost via a channel_update

Before exiting, `channeld` constructs and sends a `channel_update`
marking the channel as disabled. This is the pro-active signalling
that the channel may no longer be used.
This commit is contained in:
Christian Decker
2017-03-21 21:21:17 +01:00
committed by Rusty Russell
parent c8da420a9d
commit 60a2227f0d
3 changed files with 44 additions and 25 deletions

View File

@@ -7,6 +7,7 @@
#include <ccan/htable/htable_type.h>
#define ROUTING_MAX_HOPS 20
#define ROUTING_FLAGS_DISABLED 2
struct node_connection {
struct node *src, *dst;