Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
dd744070
Commit
dd744070
authored
1 year ago
by
pavel.uhanov
Committed by
Constantin P.
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
hotfix-9386
parent
356ad361
No related branches found
No related tags found
1 merge request
!1272
hotfix-9386
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dap-sdk
+1
-1
1 addition, 1 deletion
dap-sdk
modules/channel/chain-net-srv/dap_stream_ch_chain_net_srv.c
+1
-1
1 addition, 1 deletion
modules/channel/chain-net-srv/dap_stream_ch_chain_net_srv.c
modules/net/srv/dap_chain_net_srv.c
+1
-1
1 addition, 1 deletion
modules/net/srv/dap_chain_net_srv.c
with
3 additions
and
3 deletions
dap-sdk
@
933f9747
Compare
6947b123
...
933f9747
Subproject commit
6947b1238f6057bce9733c4084cf41f2a01d434f
Subproject commit
933f97479602d7b4be2c8fdbe6f6d2aea7dfc9b9
This diff is collapsed.
Click to expand it.
modules/channel/chain-net-srv/dap_stream_ch_chain_net_srv.c
+
1
−
1
View file @
dd744070
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
modules/net/srv/dap_chain_net_srv.c
+
1
−
1
View file @
dd744070
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment