From ea040d20353a543089e57ce2ad1f99410f92b980 Mon Sep 17 00:00:00 2001 From: "roman.khlopkov" <roman.khlopkov@demlabs.net> Date: Wed, 28 Aug 2024 17:58:28 +0300 Subject: [PATCH 1/2] [*] Auto announe for node address in network --- cellframe-sdk | 2 +- dap-sdk | 2 +- sources/main.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cellframe-sdk b/cellframe-sdk index 49fc6fc35..2dc85815a 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit 49fc6fc35d034bbf59c0f71545d2abeac7557020 +Subproject commit 2dc85815af2408e31dfffbd1978e7e1b499e5067 diff --git a/dap-sdk b/dap-sdk index 6a511500c..75d58d140 160000 --- a/dap-sdk +++ b/dap-sdk @@ -1 +1 @@ -Subproject commit 6a511500ce7f6c3c7c0e0792640f6c9deade7fd2 +Subproject commit 75d58d14098ac8730c35bb6b8a449568a505c5c1 diff --git a/sources/main.c b/sources/main.c index 946fe96f5..5294a4b3e 100755 --- a/sources/main.c +++ b/sources/main.c @@ -373,6 +373,7 @@ int main( int argc, const char **argv ) #endif dap_chain_net_load_all(); + dap_chain_net_announce_addr_all(); if ( dap_chain_node_cli_init(g_config) ) { log_it( L_CRITICAL, "Can't init server for console" ); -- GitLab From 884dd107a8d2e9efb11ae531dc1b08f56cb68948 Mon Sep 17 00:00:00 2001 From: "roman.khlopkov" <roman.khlopkov@demlabs.net> Date: Wed, 28 Aug 2024 18:21:08 +0300 Subject: [PATCH 2/2] [*] Auto announce for node address in network --- sources/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/main.c b/sources/main.c index 5294a4b3e..b6b530cdf 100755 --- a/sources/main.c +++ b/sources/main.c @@ -373,7 +373,6 @@ int main( int argc, const char **argv ) #endif dap_chain_net_load_all(); - dap_chain_net_announce_addr_all(); if ( dap_chain_node_cli_init(g_config) ) { log_it( L_CRITICAL, "Can't init server for console" ); @@ -480,6 +479,7 @@ int main( int argc, const char **argv ) } } dap_chain_net_try_online_all(); + dap_chain_net_announce_addr_all(); rc = dap_events_wait(); log_it( rc ? L_CRITICAL : L_NOTICE, "Server loop stopped with return code %d", rc ); // Deinit modules -- GitLab