From b6ec5d920be946759f94e5aa12aa2dade036979c Mon Sep 17 00:00:00 2001 From: Roman Khlopkov <roman.khlopkov@demlabs.net> Date: Thu, 28 May 2020 10:53:04 +0300 Subject: [PATCH] [*] Ledger sum per token corrected --- modules/chain/dap_chain_ledger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chain/dap_chain_ledger.c b/modules/chain/dap_chain_ledger.c index f5ff80684e..7c1a1f4f71 100644 --- a/modules/chain/dap_chain_ledger.c +++ b/modules/chain/dap_chain_ledger.c @@ -816,7 +816,7 @@ int dap_chain_ledger_tx_cache_check(dap_ledger_t *a_ledger, dap_chain_datum_tx_t dap_list_t *l_list_tmp = dap_chain_datum_tx_items_get((dap_chain_datum_tx_t*) a_tx, TX_ITEM_TYPE_OUT_COND, NULL); // accumalate value ​from all 'out' & 'out_cond' transactions if (l_list_tmp) { - l_list_out = dap_list_append(l_list_out, l_list_tmp); + l_list_out = dap_list_append(l_list_out, l_list_tmp->data); } for (l_list_tmp = l_list_out; l_list_tmp; l_list_tmp = dap_list_next(l_list_tmp)) { if (*(uint8_t *)l_list_tmp->data == TX_ITEM_TYPE_OUT) { -- GitLab