diff --git a/dap_chain_ledger.c b/dap_chain_ledger.c index ab6e414bc4908193b4e83ad18c5de282c75d73de..710a2cca0f14609449e161f35ea4e2ed5bef36fc 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){