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
6820425b
Commit
6820425b
authored
5 years ago
by
alexander.lysikov
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'feature-2557'
Master See merge request
!3
parents
59e8eab5
b3f792a6
No related branches found
Branches containing commit
No related tags found
2 merge requests
!3
Master
,
!2
fixed dap_chain_net_srv_add()
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap_chain_net_srv.c
+1
-1
1 addition, 1 deletion
dap_chain_net_srv.c
dap_chain_net_srv_common.h
+2
-0
2 additions, 0 deletions
dap_chain_net_srv_common.h
with
3 additions
and
1 deletion
dap_chain_net_srv.c
+
1
−
1
View file @
6820425b
...
...
@@ -540,7 +540,7 @@ dap_chain_datum_tx_receipt_t * dap_chain_net_srv_issue_receipt(dap_chain_net_srv
{
dap_chain_datum_tx_receipt_t
*
l_receipt
=
dap_chain_datum_tx_receipt_create
(
a_srv
->
uid
,
a_price
->
units_uid
,
a_price
->
units
,
a_price
->
value_datoshi
);
size_t
l_receipt_size
=
sizeof
(
dap_chain_receipt_t
)
+
1
;
// nested receipt plus 8 bits for type
size_t
l_receipt_size
=
sizeof
(
dap_chain_receipt_
info_
t
)
+
1
;
// nested receipt plus 8 bits for type
// Sign with our wallet
l_receipt_size
=
dap_chain_datum_tx_receipt_sign_add
(
l_receipt
,
l_receipt_size
,
dap_chain_wallet_get_key
(
a_usage
->
wallet
,
0
)
);
...
...
This diff is collapsed.
Click to expand it.
dap_chain_net_srv_common.h
+
2
−
0
View file @
6820425b
...
...
@@ -94,6 +94,7 @@ typedef struct dap_chain_net_srv_price
#define DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_REQUEST 0x01
#define DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_SIGN_REQUEST 0x10
#define DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_SIGN_RESPONSE 0x11
#define DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_NOTIFY_STOPPED 0x20
#define DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_SUCCESS 0xf0
#define DAP_STREAM_CH_CHAIN_NET_SRV_PKT_TYPE_RESPONSE_ERROR 0xff
...
...
@@ -119,6 +120,7 @@ typedef struct dap_stream_ch_chain_net_srv_pkt_request_hdr{
dap_chain_net_id_t
net_id
;
// Network id wheither to request
dap_chain_hash_fast_t
tx_cond
;
// Conditioned transaction with paymemt for
dap_chain_net_srv_uid_t
srv_uid
;
char
token
[
DAP_CHAIN_TICKER_SIZE_MAX
];
}
DAP_ALIGN_PACKED
dap_stream_ch_chain_net_srv_pkt_request_hdr_t
;
typedef
struct
dap_stream_ch_chain_net_srv_pkt_request
{
...
...
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