Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-net-srv
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-chain-net-srv
Commits
8715f410
Commit
8715f410
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Comments->Ext
parent
aa28a3fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap_chain_net_srv_order.c
+2
-4
2 additions, 4 deletions
dap_chain_net_srv_order.c
dap_chain_net_srv_order.h
+1
-1
1 addition, 1 deletion
dap_chain_net_srv_order.h
with
3 additions
and
5 deletions
dap_chain_net_srv_order.c
+
2
−
4
View file @
8715f410
...
...
@@ -72,7 +72,7 @@ char* dap_chain_net_srv_order_create(
l_order
->
price
=
a_price
;
l_order
->
price_unit
=
a_price_unit
;
if
(
a_comments
)
strncpy
(
l_order
->
comments
,
a_comments
,
sizeof
(
l_order
->
comments
)
-
1
);
strncpy
(
l_order
->
ext
,
a_comments
,
sizeof
(
l_order
->
ext
)
-
1
);
dap_hash_fast
(
l_order
,
sizeof
(
*
l_order
),
l_order_hash
);
char
*
l_order_hash_str
=
dap_chain_hash_fast_to_str_new
(
l_order_hash
);
...
...
@@ -220,8 +220,6 @@ void dap_chain_net_srv_order_dump_to_string(dap_chain_net_srv_order_t *a_order,d
dap_chain_hash_fast_to_str
(
&
a_order
->
tx_cond_hash
,
l_hash_str
,
sizeof
(
l_hash_str
)
-
1
);
dap_string_append_printf
(
a_str_out
,
" tx_cond_hash: %s
\n
"
,
l_hash_str
);
if
(
a_order
->
comments
[
0
])
dap_string_append_printf
(
a_str_out
,
" comments:
\"
%s
\"\n
"
,
a_order
->
comments
);
dap_string_append_printf
(
a_str_out
,
" ext:
\"
%s
\"\n
"
,
a_order
->
ext
);
}
}
This diff is collapsed.
Click to expand it.
dap_chain_net_srv_order.h
+
1
−
1
View file @
8715f410
...
...
@@ -39,7 +39,7 @@ typedef struct dap_chain_net_srv_order
dap_chain_net_srv_price_unit_uid_t
price_unit
;
// Unit of service (seconds, megabytes, etc.) Only for SERV_CLASS_PERMANENT
dap_chain_time_t
ts_created
;
dap_chain_time_t
ts_expires
;
char
comments
[
128
];
char
ext
[
128
];
}
dap_chain_net_srv_order_t
;
// Init/deinit should be call only if private
...
...
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