mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
942d04ba87
We make new_routing_channel() populate both connections (active=false), so local_add_channel becomes simpler. We also suppress listchannels output of active=false unannounced channels, to avoid breaking tests (also, these are unusable, so it makes sense to omit them) It also seems the logic in add_channel_direction is legacy: a channel_announce cannot replace the scid (that would be a different channel), we don't allow duplicate announcements, and the announcement is never NULL. And since we disallow repeated channel_announce already, I believe 'forward' is always true, greatly simplifying the logic in handle_pending_cannouncement. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
---|---|---|
.. | ||
test | ||
broadcast.c | ||
broadcast.h | ||
gossip_wire.csv | ||
gossip.c | ||
handshake.c | ||
handshake.h | ||
Makefile | ||
routing.c | ||
routing.h |