Skip to content
Snippets Groups Projects
Commit 989da291 authored by alexey.stratulat's avatar alexey.stratulat
Browse files

[*] Fixed a bug with the fact that the address pointers were not set to the...

[*] Fixed a bug with the fact that the address pointers were not set to the conditional output of the transaction, the previous conditional output of the transaction and the index of this output.
parent 8f0f0962
No related branches found
No related tags found
1 merge request!1673Bugfix 11853
Pipeline #40477 passed with stage
in 45 minutes and 9 seconds
...@@ -1665,8 +1665,7 @@ xchange_tx_type_t dap_chain_net_srv_xchange_tx_get_type (dap_ledger_t * a_ledger ...@@ -1665,8 +1665,7 @@ xchange_tx_type_t dap_chain_net_srv_xchange_tx_get_type (dap_ledger_t * a_ledger
if (l_out_cond_item && !l_out_prev_cond_item) if (l_out_cond_item && !l_out_prev_cond_item)
l_tx_type = TX_TYPE_ORDER; l_tx_type = TX_TYPE_ORDER;
else if (l_out_cond_item && l_out_prev_cond_item) else if (l_out_cond_item && l_out_prev_cond_item) {
{
l_tx_type = TX_TYPE_EXCHANGE; l_tx_type = TX_TYPE_EXCHANGE;
} }
else if (!l_out_cond_item && l_out_prev_cond_item) else if (!l_out_cond_item && l_out_prev_cond_item)
...@@ -1699,14 +1698,13 @@ xchange_tx_type_t dap_chain_net_srv_xchange_tx_get_type (dap_ledger_t * a_ledger ...@@ -1699,14 +1698,13 @@ xchange_tx_type_t dap_chain_net_srv_xchange_tx_get_type (dap_ledger_t * a_ledger
l_tx_type = TX_TYPE_EXCHANGE; l_tx_type = TX_TYPE_EXCHANGE;
} }
if(a_out_cond_item)
*a_out_cond_item = l_out_cond_item;
if(a_out_prev_cond_item)
*a_out_prev_cond_item = l_out_prev_cond_item;
if (a_item_idx)
*a_item_idx = l_cond_idx;
return l_tx_type;
} }
if(a_out_cond_item)
*a_out_cond_item = l_out_cond_item;
if(a_out_prev_cond_item)
*a_out_prev_cond_item = l_out_prev_cond_item;
if (a_item_idx)
*a_item_idx = l_cond_idx;
return l_tx_type; return l_tx_type;
} }
......
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