diff --git a/dap-sdk b/dap-sdk index 40f0762e0de57244851ef19436bda14c56664628..70faaae6a9360b490b7ed71fc2d2083cb8ad536c 160000 --- a/dap-sdk +++ b/dap-sdk @@ -1 +1 @@ -Subproject commit 40f0762e0de57244851ef19436bda14c56664628 +Subproject commit 70faaae6a9360b490b7ed71fc2d2083cb8ad536c diff --git a/modules/net/dap_chain_ledger.c b/modules/net/dap_chain_ledger.c index a8336fc53b24a61eed201019591fa3d18f38f64a..532d6323580e44407740f441eaa3e8911dfd7e39 100644 --- a/modules/net/dap_chain_ledger.c +++ b/modules/net/dap_chain_ledger.c @@ -5805,11 +5805,11 @@ void dap_ledger_set_cache_tx_check_callback(dap_ledger_t *a_ledger, dap_ledger_c PVT(a_ledger)->cache_tx_check_callback = a_callback; } -char * dap_ledger_tx_get_main_ticker(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx, int *a_ledger_rc) +const char *dap_ledger_tx_get_main_ticker(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx, int *a_ledger_rc) { - char *l_main_ticker = NULL; + const char *l_main_ticker = NULL; dap_chain_hash_fast_t * l_tx_hash = dap_chain_node_datum_tx_calc_hash(a_tx); - int l_rc = dap_ledger_tx_cache_check(a_ledger, a_tx, l_tx_hash, false, NULL, NULL, &l_main_ticker); + int l_rc = dap_ledger_tx_cache_check(a_ledger, a_tx, l_tx_hash, false, NULL, NULL, (char **)&l_main_ticker); if (l_rc == DAP_LEDGER_TX_ALREADY_CACHED) { diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c index 8b32f469e5f1ed434f36e5f6fc5abd82ee295222..c54033beded87892a2f6d6ac8448028c38dc4aab 100644 --- a/modules/net/dap_chain_node_cli_cmd.c +++ b/modules/net/dap_chain_node_cli_cmd.c @@ -2930,7 +2930,7 @@ void s_com_mempool_list_print_for_chain(dap_chain_net_t * a_net, dap_chain_t * a dap_chain_datum_tx_t *l_tx = (dap_chain_datum_tx_t *) l_datum->data; int l_ledger_rc = DAP_LEDGER_TX_CHECK_NULL_TX; - char *l_main_ticker = dap_ledger_tx_get_main_ticker(a_net->pub.ledger, l_tx, &l_ledger_rc); + const char *l_main_ticker = dap_ledger_tx_get_main_ticker(a_net->pub.ledger, l_tx, &l_ledger_rc); char * l_ledger_rc_str = dap_ledger_tx_check_err_str(l_ledger_rc); json_object *l_jobj_main_ticker = json_object_new_string(l_main_ticker ? l_main_ticker : "UNKNOWN"); diff --git a/modules/net/include/dap_chain_ledger.h b/modules/net/include/dap_chain_ledger.h index a66092cda25c6b0acb1955aecb70487c1ee73ea7..f120bc48bce4bac0dcebf670e10e577fbd69a842 100644 --- a/modules/net/include/dap_chain_ledger.h +++ b/modules/net/include/dap_chain_ledger.h @@ -273,7 +273,7 @@ bool dap_ledger_tx_poa_signed(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx int dap_ledger_tx_cache_check(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx, dap_hash_fast_t *a_tx_hash, bool a_from_threshold, dap_list_t **a_list_bound_items, dap_list_t **a_list_tx_out, char **a_main_ticker); -char * dap_ledger_tx_get_main_ticker(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx, int *a_ledger_rc); +const char *dap_ledger_tx_get_main_ticker(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx, int *a_ledger_rc); /**