]> git.bitcoin.ninja Git - rust-lightning/commit
By default sort network addrs before inclusion in node_announcements 2021-05-sort-addrs
authorMatt Corallo <git@bluematt.me>
Wed, 5 May 2021 00:19:11 +0000 (00:19 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 5 May 2021 00:22:14 +0000 (00:22 +0000)
commit37fe22fece33156d9a969aef8337d9c5913a857d
tree19550bd488f5c0a46e9580f436fce688e4c9e050
parentc60543c0ed9f1c469fb8b1836ef7796c696642f3
By default sort network addrs before inclusion in node_announcements

In  #797, we stopped enforcing that read/sent node_announcements
had their addresses sorted. While this is fine in practice, we
should still make a best-effort to sort them to comply with the
spec's forward-compatibility requirements, which we do here in the
ChannelManager.
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs