From 63156ad0f6c77df26161dd47af82adfb0928293a Mon Sep 17 00:00:00 2001 From: Dmitriy Gerasimov <naeper@demlabs.net> Date: Tue, 21 May 2019 23:37:05 +0700 Subject: [PATCH] [-] Commented out removal of same tx --- dap_chain_ledger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dap_chain_ledger.c b/dap_chain_ledger.c index ab6e414..710a2cc 100755 --- a/dap_chain_ledger.c +++ b/dap_chain_ledger.c @@ -654,10 +654,11 @@ int dap_chain_ledger_tx_add(dap_ledger_t *a_ledger, dap_chain_datum_tx_t *a_tx) // transaction already present in the cache list if(l_item_tmp) { // delete transaction from the cache list - ret = dap_chain_ledger_tx_remove(a_ledger, l_tx_hash); + //ret = dap_chain_ledger_tx_remove(a_ledger, l_tx_hash); // there should be no duplication log_it(L_WARNING, "Transaction (hash=0x%x) deleted from cache because there is an attempt to add it to cache", l_tx_hash); + ret = -1; } // add transaction to the cache list if(ret == 1){ -- GitLab