mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
gossipd: don't publish private updates after channel_announce.
We generate new ones anyway; removing this code changes fixes coming up which now only need to change one place. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
27a186be9c
commit
2431742285
@ -638,13 +638,10 @@ bool routing_add_channel_announcement(struct routing_state *rstate,
|
||||
/* Now we can broadcast channel announce */
|
||||
insert_broadcast(rstate->broadcasts, chan->channel_announce);
|
||||
|
||||
/* If we had private updates for channels, we can broadcast them too. */
|
||||
for (size_t i = 0; i < ARRAY_SIZE(chan->half); i++) {
|
||||
if (!is_halfchan_defined(&chan->half[i]))
|
||||
continue;
|
||||
insert_broadcast(rstate->broadcasts,
|
||||
chan->half[i].channel_update);
|
||||
}
|
||||
/* Clear any private updates. */
|
||||
for (size_t i = 0; i < ARRAY_SIZE(chan->half); i++)
|
||||
chan->half[i].channel_update
|
||||
= tal_free(chan->half[i].channel_update);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user