Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-chain-global-db
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-global-db
Commits
e5ec14a4
Commit
e5ec14a4
authored
5 years ago
by
anta999
Browse files
Options
Downloads
Patches
Plain Diff
remove funcs dups
parent
7e1fb01a
Branches
1.1-12-Win
Branches containing commit
No related tags found
2 merge requests
!2
Master
,
!1
1.1 12 win
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap_chain_global_db.h
+3
-3
3 additions, 3 deletions
dap_chain_global_db.h
dap_chain_global_db_hist.c
+4
-0
4 additions, 0 deletions
dap_chain_global_db_hist.c
with
7 additions
and
3 deletions
dap_chain_global_db.h
+
3
−
3
View file @
e5ec14a4
...
@@ -103,9 +103,9 @@ char* dap_chain_global_db_hash_fast(const uint8_t *data, size_t data_size);
...
@@ -103,9 +103,9 @@ char* dap_chain_global_db_hash_fast(const uint8_t *data, size_t data_size);
uint8_t
*
dap_db_log_pack
(
dap_global_db_obj_t
*
a_obj
,
size_t
*
a_data_size_out
);
uint8_t
*
dap_db_log_pack
(
dap_global_db_obj_t
*
a_obj
,
size_t
*
a_data_size_out
);
// Get data according the history log
// Get data according the history log
char
*
dap_db_history_tx
(
dap_chain_hash_fast_t
*
a_tx_hash
,
const
char
*
a_group_mempool
);
//
char* dap_db_history_tx(dap_chain_hash_fast_t * a_tx_hash, const char *a_group_mempool);
char
*
dap_db_history_addr
(
dap_chain_addr_t
*
a_addr
,
const
char
*
a_group_mempool
);
//
char* dap_db_history_addr(dap_chain_addr_t * a_addr, const char *a_group_mempool);
char
*
dap_db_history_filter
(
dap_chain_addr_t
*
a_addr
,
const
char
*
a_group_mempool
);
//
char* dap_db_history_filter(dap_chain_addr_t * a_addr, const char *a_group_mempool);
// Parse data from dap_db_log_pack()
// Parse data from dap_db_log_pack()
void
*
dap_db_log_unpack
(
const
void
*
a_data
,
size_t
a_data_size
,
size_t
*
a_store_obj_count
);
void
*
dap_db_log_unpack
(
const
void
*
a_data
,
size_t
a_data_size
,
size_t
*
a_store_obj_count
);
...
...
This diff is collapsed.
Click to expand it.
dap_chain_global_db_hist.c
+
4
−
0
View file @
e5ec14a4
...
@@ -155,6 +155,7 @@ static dap_store_obj_t* get_prev_tx(dap_global_db_obj_t *a_objs, dap_tx_data_t *
...
@@ -155,6 +155,7 @@ static dap_store_obj_t* get_prev_tx(dap_global_db_obj_t *a_objs, dap_tx_data_t *
*
*
* return history string
* return history string
*/
*/
#if 0
char* dap_db_history_tx(dap_chain_hash_fast_t* a_tx_hash, const char *a_group_mempool)
char* dap_db_history_tx(dap_chain_hash_fast_t* a_tx_hash, const char *a_group_mempool)
{
{
dap_string_t *l_str_out = dap_string_new(NULL);
dap_string_t *l_str_out = dap_string_new(NULL);
...
@@ -368,12 +369,14 @@ char* dap_db_history_tx(dap_chain_hash_fast_t* a_tx_hash, const char *a_group_me
...
@@ -368,12 +369,14 @@ char* dap_db_history_tx(dap_chain_hash_fast_t* a_tx_hash, const char *a_group_me
char *l_ret_str = l_str_out ? dap_string_free(l_str_out, false) : NULL;
char *l_ret_str = l_str_out ? dap_string_free(l_str_out, false) : NULL;
return l_ret_str;
return l_ret_str;
}
}
#endif
/**
/**
* Get data according the history log
* Get data according the history log
*
*
* return history string
* return history string
*/
*/
#if 0
char* dap_db_history_addr(dap_chain_addr_t * a_addr, const char *a_group_mempool)
char* dap_db_history_addr(dap_chain_addr_t * a_addr, const char *a_group_mempool)
{
{
dap_string_t *l_str_out = dap_string_new(NULL);
dap_string_t *l_str_out = dap_string_new(NULL);
...
@@ -707,6 +710,7 @@ char* dap_db_history_addr(dap_chain_addr_t * a_addr, const char *a_group_mempool
...
@@ -707,6 +710,7 @@ char* dap_db_history_addr(dap_chain_addr_t * a_addr, const char *a_group_mempool
char *l_ret_str = l_str_out ? dap_string_free(l_str_out, false) : NULL;
char *l_ret_str = l_str_out ? dap_string_free(l_str_out, false) : NULL;
return l_ret_str;
return l_ret_str;
}
}
#endif
/**
/**
...
...
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