]> git.bitcoin.ninja Git - rust-lightning/commit
Allow a `DNSResolverMessageHandler` to set `dns_resolver` feature 2024-10-dns-feature-flag
authorMatt Corallo <git@bluematt.me>
Wed, 2 Oct 2024 18:21:33 +0000 (18:21 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 2 Oct 2024 18:24:40 +0000 (18:24 +0000)
commit457b634d09e53ecb9cdd1b3b14c62ba5c2b95201
tree0c5fe15a0740d492f589979f40453270f10a7f3b
parent1abbe2a2374e99704cea8599f5ac578d85425b92
Allow a `DNSResolverMessageHandler` to set `dns_resolver` feature

A `DNSResolverMessageHandler` which handles resolution requests
should want the `NodeFeatures` included in the node's
`node_announcement` to include `dns_resolver` to indicate to the
world that it provides that service. Here we enable this by
requesting extra feature flags from the `DNSResolverMessageHandler`
in the features `OnionMessenger`, in turn, provides to
`PeerManager` (which builds the `node_announcement`).
lightning/src/onion_message/dns_resolution.rs
lightning/src/onion_message/messenger.rs