mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 00:54:22 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user