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
ec8d17ef
Commit
ec8d17ef
authored
8 months ago
by
alexey.stratulat
Committed by
Roman Khlopkov
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix 12465
parent
c3e7cc27
No related branches found
No related tags found
1 merge request
!1732
Bugfix 12465
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/service/xchange/dap_chain_net_srv_xchange.c
+9
-3
9 additions, 3 deletions
modules/service/xchange/dap_chain_net_srv_xchange.c
with
9 additions
and
3 deletions
modules/service/xchange/dap_chain_net_srv_xchange.c
+
9
−
3
View file @
ec8d17ef
...
@@ -1351,13 +1351,19 @@ static int s_cli_srv_xchange_order(int a_argc, char **a_argv, int a_arg_index, v
...
@@ -1351,13 +1351,19 @@ static int s_cli_srv_xchange_order(int a_argc, char **a_argv, int a_arg_index, v
if
(
l_addr_hash_str
){
if
(
l_addr_hash_str
){
dap_chain_addr_t
*
l_addr
=
dap_chain_addr_from_str
(
l_addr_hash_str
);
dap_chain_addr_t
*
l_addr
=
dap_chain_addr_from_str
(
l_addr_hash_str
);
if
(
!
l_addr
)
{
if
(
!
l_addr
)
{
dap_cli_server_cmd_set_reply_text
(
a_str_reply
,
"Incorrect chain address"
);
dap_cli_server_cmd_set_reply_text
(
a_str_reply
,
"Cannot convert "
"string '%s' to binary address."
,
l_addr_hash_str
);
return
-
14
;
return
-
14
;
}
}
if
(
dap_chain_addr_check_sum
(
l_addr
)
!=
1
)
{
if
(
dap_chain_addr_check_sum
(
l_addr
)
!=
0
)
{
dap_cli_server_cmd_set_reply_text
(
a_str_reply
,
"Incorrect
chain
address"
);
dap_cli_server_cmd_set_reply_text
(
a_str_reply
,
"Incorrect address
wallet
"
);
return
-
15
;
return
-
15
;
}
}
if
(
l_addr
->
net_id
.
uint64
!=
l_net
->
pub
.
id
.
uint64
)
{
dap_cli_server_cmd_set_reply_text
(
a_str_reply
,
"Address %s does not belong to the %s network."
,
l_addr_hash_str
,
l_net
->
pub
.
name
);
return
-
16
;
}
dap_list_t
*
l_tx_list
=
dap_chain_net_get_tx_cond_all_for_addr
(
l_net
,
l_addr
,
c_dap_chain_net_srv_xchange_uid
);
dap_list_t
*
l_tx_list
=
dap_chain_net_get_tx_cond_all_for_addr
(
l_net
,
l_addr
,
c_dap_chain_net_srv_xchange_uid
);
dap_string_t
*
l_str_reply
=
dap_string_new
(
""
);
dap_string_t
*
l_str_reply
=
dap_string_new
(
""
);
...
...
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