Skip to content
Snippets Groups Projects

Features 4756

Merged alexey.stratulat requested to merge features-4756 into master
@@ -60,6 +60,15 @@ typedef struct dap_chain_tx_hash_processed_ht{
dap_chain_hash_fast_t hash;
UT_hash_handle hh;
}dap_chain_tx_hash_processed_ht_t;
void _dap_chain_tx_hash_processed_ht_free(dap_chain_tx_hash_processed_ht_t *l_hash_processed){
dap_chain_tx_hash_processed_ht_t *l_tmp;
dap_chain_tx_hash_processed_ht_t *l_current_hash;
HASH_ITER(hh, l_hash_processed, l_current_hash, l_tmp){
DAP_FREE(&l_current_hash->hash);
DAP_FREE(l_current_hash);
}
DAP_FREE(l_hash_processed);
}
/*static char* dap_db_new_history_timestamp()
{
@@ -1474,6 +1483,7 @@ int com_ledger(int a_argc, char ** a_argv, void *a_arg_func, char **a_str_reply)
dap_chain_enum_unlock();
l_chain_cur = dap_chain_enum(&l_chain_tmp);
}
_dap_chain_tx_hash_processed_ht_free(l_list_tx_hash_processd);
// all chain
if(!l_chain)
dap_chain_enum_unlock();
@@ -1689,6 +1699,7 @@ int com_token(int a_argc, char ** a_argv, void *a_arg_func, char **a_str_reply)
l_chain_cur = dap_chain_enum(&l_chain_tmp);
}
dap_chain_enum_unlock();
_dap_chain_tx_hash_processed_ht_free(l_list_tx_hash_processd);
dap_chain_node_cli_set_reply_text(a_str_reply, l_str_out->str);
dap_string_free(l_str_out, true);
return 0;
Loading