diff --git a/dap_chain_node_cli_cmd.c b/dap_chain_node_cli_cmd.c index 6bcba7c5f6fdae618d43b7292315b06ce0f6cd36..1176a8a36448fda1cb17b7cc0d9387ffe9d50f9f 100644 --- a/dap_chain_node_cli_cmd.c +++ b/dap_chain_node_cli_cmd.c @@ -231,16 +231,11 @@ static int com_global_db_add(dap_chain_node_info_t *a_node_info, const char *ali dap_chain_node_cli_set_reply_text(str_reply, "not found -cell parameter"); return -1; } - if(!ipv4_str && !ipv6_str) { - dap_chain_node_cli_set_reply_text(str_reply, "not found -ipv4 or -ipv6 parameter"); - return -1; - } - else { - if(ipv4_str) - inet_pton(AF_INET, ipv4_str, &(a_node_info->hdr.ext_addr_v4)); - if(ipv6_str) - inet_pton(AF_INET6, ipv6_str, &(a_node_info->hdr.ext_addr_v6)); - } + if(ipv4_str) + inet_pton(AF_INET, ipv4_str, &(a_node_info->hdr.ext_addr_v4)); + if(ipv6_str) + inet_pton(AF_INET6, ipv6_str, &(a_node_info->hdr.ext_addr_v6)); + // check match addr to cell or no /*dap_chain_node_addr_t *addr = dap_chain_node_gen_addr(&node_info->hdr.cell_id); if(!dap_chain_node_check_addr(&node_info->hdr.address, &node_info->hdr.cell_id)) { diff --git a/dap_chain_node_client.c b/dap_chain_node_client.c index cb14bdd9951a25ef60f0b15ba69b594a855e21c8..ce380cab4433fb14add6166aae1698b74b4cfd4b 100644 --- a/dap_chain_node_client.c +++ b/dap_chain_node_client.c @@ -172,7 +172,7 @@ static void s_ch_chain_callback_notify_packet_in(dap_stream_ch_chain_t* a_ch_cha if ( l_request ){ if ( l_request->ts_start < (uint64_t) dap_db_log_get_last_timestamp() ){ - log_it(L_INFO, "Remote is synced all but we have updates for it"); + log_it(L_INFO, "Remote is synced but we have updates for it"); // Get log diff a_ch_chain->request_last_ts = dap_db_log_get_last_timestamp(); dap_list_t *l_list = dap_db_log_get_list((time_t) l_request->ts_start);