Skip to content
Snippets Groups Projects
Commit dd744070 authored by pavel.uhanov's avatar pavel.uhanov Committed by Constantin P.
Browse files

hotfix-9386

parent 356ad361
No related branches found
No related tags found
1 merge request!1272hotfix-9386
Subproject commit 6947b1238f6057bce9733c4084cf41f2a01d434f Subproject commit 933f97479602d7b4be2c8fdbe6f6d2aea7dfc9b9
...@@ -232,7 +232,7 @@ static void s_service_start(dap_stream_ch_t* a_ch , dap_stream_ch_chain_net_srv_ ...@@ -232,7 +232,7 @@ static void s_service_start(dap_stream_ch_t* a_ch , dap_stream_ch_chain_net_srv_
if ( ! l_net ) // Network not found if ( ! l_net ) // Network not found
l_err.code = DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR_CODE_NETWORK_NOT_FOUND; l_err.code = DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR_CODE_NETWORK_NOT_FOUND;
bool l_check_role = dap_chain_net_get_role(l_net).enums < NODE_ROLE_MASTER; // check role bool l_check_role = dap_chain_net_get_role(l_net).enums > NODE_ROLE_MASTER; // check role
if ( ! l_srv || l_check_role) // Service not found if ( ! l_srv || l_check_role) // Service not found
l_err.code = DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR_CODE_SERVICE_NOT_FOUND; l_err.code = DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR_CODE_SERVICE_NOT_FOUND;
......
...@@ -464,7 +464,7 @@ static int s_cli_net_srv( int argc, char **argv, char **a_str_reply) ...@@ -464,7 +464,7 @@ static int s_cli_net_srv( int argc, char **argv, char **a_str_reply)
dap_string_append(l_string_ret,"need -hash param to obtain what the order we need to dump\n"); dap_string_append(l_string_ret,"need -hash param to obtain what the order we need to dump\n");
} }
} else if(!dap_strcmp( l_order_str, "create" )) { } else if(!dap_strcmp( l_order_str, "create" )) {
if (dap_chain_net_get_role(l_net).enums < NODE_ROLE_MASTER) { if (dap_chain_net_get_role(l_net).enums > NODE_ROLE_MASTER) {
dap_cli_server_cmd_set_reply_text(a_str_reply, "Node role should be not lower than master\n"); dap_cli_server_cmd_set_reply_text(a_str_reply, "Node role should be not lower than master\n");
return -4; return -4;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment