mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 16:44:22 +01:00
We always call: send_temporary_announcement(peer); send_announcement_signatures(peer); We should handle these in one place, since the conditional at the top of them actually makes sure only one is effective. We also make the caller set the peer->have_sigs[LOCAL] flag, instead of doing it inside send_announcement_signatures(). We were sending announcements at the wrong time (on restart) somtimes. We also move announce_channel() into the same logic, so it's always together. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>