Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-mempool
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-mempool
Commits
c44dcde6
Commit
c44dcde6
authored
5 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Lot of warnings fixes
parent
ef124147
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
client_mempool.c
+1
-1
1 addition, 1 deletion
client_mempool.c
dap_chain_mempool.c
+3
-3
3 additions, 3 deletions
dap_chain_mempool.c
dap_chain_mempool.h
+3
-2
3 additions, 2 deletions
dap_chain_mempool.h
with
7 additions
and
6 deletions
client_mempool.c
+
1
−
1
View file @
c44dcde6
...
@@ -259,7 +259,7 @@ static int client_mempool_send_request(client_mempool_t *mempool, dap_datum_memp
...
@@ -259,7 +259,7 @@ static int client_mempool_send_request(client_mempool_t *mempool, dap_datum_memp
size_t
a_request_size
=
1
;
size_t
a_request_size
=
1
;
uint8_t
*
a_request
=
(
datum_mempool
)
?
dap_datum_mempool_serialize
(
datum_mempool
,
&
a_request_size
)
:
(
uint8_t
*
)
" "
;
uint8_t
*
a_request
=
(
datum_mempool
)
?
dap_datum_mempool_serialize
(
datum_mempool
,
&
a_request_size
)
:
(
uint8_t
*
)
" "
;
uint8_t
*
a_request_out
=
DAP_NEW_Z_SIZE
(
uint8_t
,
a_request_size
*
2
);
// a_request + 1 byte for type action
uint8_t
*
a_request_out
=
DAP_NEW_Z_SIZE
(
uint8_t
,
a_request_size
*
2
);
// a_request + 1 byte for type action
bin2hex
(
a_request_out
,
a_request
,
a_request_size
);
dap_
bin2hex
(
a_request_out
,
a_request
,
a_request_size
);
client_mempool_reset
(
mempool
,
CLIENT_MEMPOOL_SEND
);
client_mempool_reset
(
mempool
,
CLIENT_MEMPOOL_SEND
);
dap_client_pvt_t
*
l_client_internal
=
DAP_CLIENT_PVT
(
mempool
->
a_client
);
dap_client_pvt_t
*
l_client_internal
=
DAP_CLIENT_PVT
(
mempool
->
a_client
);
l_client_internal
->
is_close_session
=
is_last_req
;
l_client_internal
->
is_close_session
=
is_last_req
;
...
...
This diff is collapsed.
Click to expand it.
dap_chain_mempool.c
+
3
−
3
View file @
c44dcde6
...
@@ -67,7 +67,7 @@ typedef struct list_used_item {
...
@@ -67,7 +67,7 @@ typedef struct list_used_item {
const
char
*
c_dap_datum_mempool_gdb_group
=
NULL
;
const
char
*
c_dap_datum_mempool_gdb_group
=
NULL
;
int
dap_datum_mempool_init
()
int
dap_datum_mempool_init
(
void
)
{
{
c_dap_datum_mempool_gdb_group
=
dap_config_get_item_str_default
(
g_config
,
"mempool"
,
"gdb_group"
,
"datum-pool"
);
c_dap_datum_mempool_gdb_group
=
dap_config_get_item_str_default
(
g_config
,
"mempool"
,
"gdb_group"
,
"datum-pool"
);
return
0
;
return
0
;
...
@@ -595,7 +595,7 @@ void chain_mempool_proc(struct dap_http_simple *cl_st, void * arg)
...
@@ -595,7 +595,7 @@ void chain_mempool_proc(struct dap_http_simple *cl_st, void * arg)
* @param sh HTTP server instance
* @param sh HTTP server instance
* @param url URL string
* @param url URL string
*/
*/
void
dap_chain_mempool_add_proc
(
struct
dap_http
*
sh
,
const
char
*
url
)
void
dap_chain_mempool_add_proc
(
dap_http
_t
*
a_http_server
,
const
char
*
a_
url
)
{
{
dap_http_simple_proc_add
(
sh
,
url
,
4096
,
chain_mempool_proc
);
dap_http_simple_proc_add
(
a_http_server
,
a_
url
,
4096
,
chain_mempool_proc
);
}
}
This diff is collapsed.
Click to expand it.
dap_chain_mempool.h
+
3
−
2
View file @
c44dcde6
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#include
<stdint.h>
#include
<stdint.h>
#include
"dap_chain_datum.h"
#include
"dap_chain_datum.h"
#include
"dap_http.h"
/*
/*
// datum mempool structure
// datum mempool structure
typedef struct dap_datum_mempool {
typedef struct dap_datum_mempool {
...
@@ -28,7 +29,7 @@ typedef struct dap_datum_mempool {
...
@@ -28,7 +29,7 @@ typedef struct dap_datum_mempool {
dap_chain_datum_t
**
data
;
// mass of datums
dap_chain_datum_t
**
data
;
// mass of datums
}
DAP_ALIGN_PACKED
dap_datum_mempool_t
;
}
DAP_ALIGN_PACKED
dap_datum_mempool_t
;
int
dap_datum_mempool_init
();
int
dap_datum_mempool_init
(
void
);
extern
const
char
*
c_dap_datum_mempool_gdb_group
;
extern
const
char
*
c_dap_datum_mempool_gdb_group
;
...
@@ -38,7 +39,7 @@ dap_datum_mempool_t * dap_datum_mempool_deserialize(uint8_t *datum_mempool_str,
...
@@ -38,7 +39,7 @@ dap_datum_mempool_t * dap_datum_mempool_deserialize(uint8_t *datum_mempool_str,
void
dap_datum_mempool_clean
(
dap_datum_mempool_t
*
datum
);
void
dap_datum_mempool_clean
(
dap_datum_mempool_t
*
datum
);
void
dap_datum_mempool_free
(
dap_datum_mempool_t
*
datum
);
void
dap_datum_mempool_free
(
dap_datum_mempool_t
*
datum
);
void
dap_chain_mempool_add_proc
(
struct
dap_http
*
sh
,
const
char
*
url
);
void
dap_chain_mempool_add_proc
(
dap_http
_t
*
a_http_server
,
const
char
*
a_
url
);
int
dap_chain_mempool_tx_create
(
dap_enc_key_t
*
a_key_from
,
int
dap_chain_mempool_tx_create
(
dap_enc_key_t
*
a_key_from
,
const
dap_chain_addr_t
*
a_addr_from
,
const
dap_chain_addr_t
*
a_addr_to
,
const
dap_chain_addr_t
*
a_addr_fee
,
const
dap_chain_addr_t
*
a_addr_from
,
const
dap_chain_addr_t
*
a_addr_to
,
const
dap_chain_addr_t
*
a_addr_fee
,
...
...
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