From 6e81da3cd2429ba546e9496742988c9c130b3b08 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 29 Mar 2017 12:51:15 +0200 Subject: [PATCH] gossip: Fix a tag collision for different directions of a channel Appending the channel direction ensures that the directions will be treated independently. Without this only one direction would be forwarded to the peers. --- daemon/routing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/routing.c b/daemon/routing.c index 6de38a603..bf1208c29 100644 --- a/daemon/routing.c +++ b/daemon/routing.c @@ -758,6 +758,7 @@ void handle_channel_update(struct routing_state *rstate, const u8 *update, size_ u8 *tag = tal_arr(tmpctx, u8, 0); towire_short_channel_id(&tag, &short_channel_id); + towire_u16(&tag, flags & 0x1); queue_broadcast(rstate->broadcasts, WIRE_CHANNEL_UPDATE, tag,