]> git.bitcoin.ninja Git - rust-lightning/commit
Remove redundant `addresses` field from `NodeAnnouncementInfo`
authorAllan Douglas R. de Oliveira <allandouglas@gmail.com>
Mon, 13 Mar 2023 20:13:28 +0000 (20:13 +0000)
committerAllan Douglas R. de Oliveira <allandouglas@gmail.com>
Tue, 21 Mar 2023 17:27:48 +0000 (17:27 +0000)
commit6f5e5e3898da67da809e939e6980bc3fbe647112
tree6f82d43ef282ac6f6c9f171d78aa89055af1ce6d
parent217c3e09b3c7111b71ddadc2a91e2ee579af4a10
Remove redundant `addresses` field from `NodeAnnouncementInfo`

...replacing it with an acessor `addresses()`.

Besides removing a redundant data structure already present on inner
`NodeAnnouncement`, this change makes it possible to discover new address types
upon deserialization thanks to `UnsignedNodeAnnouncement`'s implementation.
lightning/src/routing/gossip.rs