send smpt-message for advertisement

This commit is contained in:
Sebastian Klähn
2024-01-25 19:20:23 +01:00
parent d13d8d48ec
commit 820a4b9357
2 changed files with 34 additions and 23 deletions

View File

@@ -440,6 +440,12 @@ pub(crate) async fn receive_imf_inner(
{
// join advertised gossip topics
Ok((topics, instance_id)) => {
warn!(context, "Joining topics: {:#?}", topics);
warn!(
context,
"{:?}",
mime_parser.get_header(HeaderDef::IrohPublicGossip)
);
if let Some(node_addr) = mime_parser.get_header(HeaderDef::IrohPublicGossip) {
match serde_json::from_str::<NodeAddr>(node_addr)
.context("Failed to parse node address")