Skip to content
Snippets Groups Projects
Commit 727d2d30 authored by alexander.lysikov's avatar alexander.lysikov
Browse files

fixed order->ext output

parent 79f1d2fb
No related branches found
No related tags found
1 merge request!7Feature 3281
......@@ -32,7 +32,7 @@
char *s_server_continents[]={
"None",
"Africa",
"Europa",
"Europe",
"North America",
"South America",
"Southeast Asia",
......@@ -413,7 +413,11 @@ void dap_chain_net_srv_order_dump_to_string(dap_chain_net_srv_order_t *a_order,d
dap_string_append_printf(a_str_out, " tx_cond_hash: %s\n", l_hash_str );
char *l_ext_out = a_order->ext_size ? DAP_NEW_Z_SIZE(char, a_order->ext_size * 2 + 1) : NULL;
dap_bin2hex(l_ext_out, a_order->ext, a_order->ext_size);
dap_string_append_printf(a_str_out, " ext: 0x%s\n", l_ext_out ? l_ext_out : "");
if(l_ext_out)
dap_string_append_printf(a_str_out, " ext: 0x%s\n", l_ext_out);
else
dap_string_append_printf(a_str_out, " ext: 0x0\n");
DAP_DELETE(l_ext_out);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment