diff --git a/modules/net/dap_chain_node_cli_cmd_tx.c b/modules/net/dap_chain_node_cli_cmd_tx.c index 8f2835af1ef2305bbde33e5346a8b0ed80d501d1..3c49f7b53e50d158cdd2ee3b8f2f2c8cf46645e6 100644 --- a/modules/net/dap_chain_node_cli_cmd_tx.c +++ b/modules/net/dap_chain_node_cli_cmd_tx.c @@ -999,7 +999,7 @@ static char* dap_db_history_filter(dap_chain_t * a_chain, const char *a_filter_t else l_tx_hash_user_str = dap_enc_base58_from_hex_str_to_str(l_tx_hash_str); dap_list_t *l_list_tx_any = dap_chain_datum_tx_items_get(l_tx, TX_ITEM_TYPE_TOKEN, NULL); - dap_string_append_printf(l_str_out, "transaction: %s hash: %s\n Addons information:\n", l_list_tx_any ? "(emit)" : "", l_tx_hash_user_str); + dap_string_append_printf(l_str_out, "transaction: %s hash: %s\n Items:\n", l_list_tx_any ? "(emit)" : "", l_tx_hash_user_str); DAP_DELETE(l_tx_hash_user_str); dap_list_free(l_list_tx_any); uint32_t l_tx_items_count = 0; @@ -1012,26 +1012,31 @@ static char* dap_db_history_filter(dap_chain_t * a_chain, const char *a_filter_t switch(dap_chain_datum_tx_item_get_type(item)){ case TX_ITEM_TYPE_IN: l_hash_str_tmp = dap_chain_hash_fast_to_str_new(&((dap_chain_tx_in_t*)item)->header.tx_prev_hash); - dap_string_append_printf(l_str_out, "Information about item type IN:\nTx prev hash: %s\nTx out prev idx: %u\n", + dap_string_append_printf(l_str_out, "\t IN:\nTx_prev_hash: %s\n" + "\t\t Tx_out_prev_idx: %u\n", l_tx_hash_str, ((dap_chain_tx_in_t*)item)->header.tx_out_prev_idx); DAP_DELETE(l_hash_str_tmp); break; case TX_ITEM_TYPE_OUT: - dap_string_append_printf(l_str_out, "Information about item type OUT \nCount: %llu\nWallet: %s\n", ((dap_chain_tx_out_t*)item)->header.value, + dap_string_append_printf(l_str_out, "\t OUT:\n" + "\t\t Value: %llu\n" + "\t\t Address: %s\n", ((dap_chain_tx_out_t*)item)->header.value, dap_chain_addr_to_str(&((dap_chain_tx_out_t*)item)->addr)); break; case TX_ITEM_TYPE_TOKEN: l_hash_str_tmp = dap_chain_hash_fast_to_str_new(&((dap_chain_tx_token_t*)item)->header.token_emission_hash); - dap_string_append_printf(l_str_out, "Information about item type TOKEN \n" - "Token ticker: %s \nToken emission hash: %s\n" - "Token emission chain id: 0x%016"DAP_UINT64_FORMAT_x"\n", ((dap_chain_tx_token_t*)item)->header.ticker, l_hash_str_tmp, + dap_string_append_printf(l_str_out, "\t TOKEN:\n" + "\t\t ticker: %s \n" + "\t\t token_emission_hash: %s\n" + "\t\t token_emission_chain_id: 0x%016"DAP_UINT64_FORMAT_x"\n", ((dap_chain_tx_token_t*)item)->header.ticker, l_hash_str_tmp, ((dap_chain_tx_token_t*)item)->header.token_emission_chain_id.uint64); DAP_DELETE(l_hash_str_tmp); break; case TX_ITEM_TYPE_SIG: l_sign_tmp = dap_chain_datum_tx_item_sign_get_sig((dap_chain_tx_sig_t*)item); - dap_string_append_printf(l_str_out, "Information about item type SIG\nSIG Size: %u \n", ((dap_chain_tx_sig_t*)item)->header.sig_size); + dap_string_append_printf(l_str_out, "\t SIG:\n" + "\t sig_size: %u\n", ((dap_chain_tx_sig_t*)item)->header.sig_size); dap_sign_get_information(l_sign_tmp, l_str_out); break; default: