Skip to content

Commit

Permalink
PeerMan: tell ChannelMessageHandler whether to advertise OM support
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Aug 31, 2022
1 parent 8257b76 commit 81a18d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightning/src/ln/peer_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
let ephemeral_hash = Sha256::from_engine(ephemeral_key_midstate.clone()).into_inner();
secp_ctx.seeded_randomize(&ephemeral_hash);

if message_handler.onion_message_handler.supports_onion_message_forwarding() {
message_handler.chan_handler.advertise_onion_message_support();
}
PeerManager {
message_handler,
peers: FairRwLock::new(HashMap::new()),
Expand Down

0 comments on commit 81a18d2

Please sign in to comment.