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.
This commit is contained in:
Christian Decker 2017-03-29 12:51:15 +02:00
parent 7793bd1b9d
commit 6e81da3cd2
1 changed files with 1 additions and 0 deletions

View File

@ -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,