Skip to content
Snippets Groups Projects
Commit 8715f410 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Comments->Ext

parent aa28a3fa
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ char* dap_chain_net_srv_order_create( ...@@ -72,7 +72,7 @@ char* dap_chain_net_srv_order_create(
l_order->price = a_price; l_order->price = a_price;
l_order->price_unit = a_price_unit; l_order->price_unit = a_price_unit;
if ( a_comments) if ( a_comments)
strncpy(l_order->comments, a_comments, sizeof ( l_order->comments)-1 ); strncpy(l_order->ext, a_comments, sizeof ( l_order->ext)-1 );
dap_hash_fast( l_order, sizeof ( *l_order), l_order_hash ); dap_hash_fast( l_order, sizeof ( *l_order), l_order_hash );
char * l_order_hash_str = dap_chain_hash_fast_to_str_new( l_order_hash ); char * l_order_hash_str = dap_chain_hash_fast_to_str_new( l_order_hash );
...@@ -220,8 +220,6 @@ void dap_chain_net_srv_order_dump_to_string(dap_chain_net_srv_order_t *a_order,d ...@@ -220,8 +220,6 @@ void dap_chain_net_srv_order_dump_to_string(dap_chain_net_srv_order_t *a_order,d
dap_chain_hash_fast_to_str(&a_order->tx_cond_hash,l_hash_str,sizeof(l_hash_str)-1); dap_chain_hash_fast_to_str(&a_order->tx_cond_hash,l_hash_str,sizeof(l_hash_str)-1);
dap_string_append_printf(a_str_out, " tx_cond_hash: %s\n", l_hash_str ); dap_string_append_printf(a_str_out, " tx_cond_hash: %s\n", l_hash_str );
dap_string_append_printf(a_str_out, " ext: \"%s\"\n", a_order->ext );
if( a_order->comments[0])
dap_string_append_printf(a_str_out, " comments: \"%s\"\n", a_order->comments );
} }
} }
...@@ -39,7 +39,7 @@ typedef struct dap_chain_net_srv_order ...@@ -39,7 +39,7 @@ typedef struct dap_chain_net_srv_order
dap_chain_net_srv_price_unit_uid_t price_unit; // Unit of service (seconds, megabytes, etc.) Only for SERV_CLASS_PERMANENT dap_chain_net_srv_price_unit_uid_t price_unit; // Unit of service (seconds, megabytes, etc.) Only for SERV_CLASS_PERMANENT
dap_chain_time_t ts_created; dap_chain_time_t ts_created;
dap_chain_time_t ts_expires; dap_chain_time_t ts_expires;
char comments[128]; char ext[128];
} dap_chain_net_srv_order_t; } dap_chain_net_srv_order_t;
// Init/deinit should be call only if private // Init/deinit should be call only if private
......
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