Browse Source

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.
ppa-0.6.1
Christian Decker 8 years ago
parent
commit
6e81da3cd2
  1. 1
      daemon/routing.c

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

Loading…
Cancel
Save