]> git.bitcoin.ninja Git - rust-lightning/commit
Properly calculate Channel::announce_publicly
authorMatt Corallo <git@bluematt.me>
Thu, 26 Jul 2018 18:33:01 +0000 (14:33 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 26 Jul 2018 19:11:36 +0000 (15:11 -0400)
commitda014797b0e9b36a160541cccad454c09200706a
treee6fb89d9eb27ae78fbda00a29642d4ff8a3f36fa
parent731aeab1f88db798ae072663365b0ddd9b944cca
Properly calculate Channel::announce_publicly

For some reason we were only setting "announce_publicly" when
Channel::new_from_req had announce_publicly set to true and the
open_channel message had the relevant flag set. However, this
resulted in us rejecting peers for sending unsolicited
announcement_signatures messages, despite them having indicated,
and us having accepted, their announce-bit-set open_channel.
fuzz/fuzz_targets/channel_target.rs
src/ln/channel.rs
src/ln/channelmanager.rs