From 310d30c3bac21668ee3eece70f5c8b4e7be4f57f Mon Sep 17 00:00:00 2001
From: "roman.khlopkov" <roman.khlopkov@demlabs.net>
Date: Thu, 2 Nov 2023 22:45:57 +0300
Subject: [PATCH] [*] More fixes

---
 modules/net/dap_chain_node_client.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/net/dap_chain_node_client.c b/modules/net/dap_chain_node_client.c
index db12965037..58bf258258 100644
--- a/modules/net/dap_chain_node_client.c
+++ b/modules/net/dap_chain_node_client.c
@@ -255,7 +255,8 @@ static void s_stage_connected_callback(dap_client_t *a_client, void *a_arg)
 
         if(l_node_client->callbacks.connected)
             l_node_client->callbacks.connected(l_node_client, l_node_client->callbacks_arg);
-
+        dap_client_write_unsafe(a_client, 'N', DAP_STREAM_CH_CHAIN_NET_PKT_TYPE_ANNOUNCE,
+                                         l_node_client->net->pub.id, sizeof(dap_chain_net_id_t));
         pthread_mutex_lock(&l_node_client->wait_mutex);
         l_node_client->state = NODE_CLIENT_STATE_ESTABLISHED;
         if (s_stream_ch_chain_debug_more)
-- 
GitLab