mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
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:
parent
7793bd1b9d
commit
6e81da3cd2
@ -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…
Reference in New Issue
Block a user