diff --git a/dap-sdk b/dap-sdk index d433979b5a48f7b0291e4ecf9d64aa67c9676782..7c637ae9ddb7903f7f78ceb1aa06cf067925b1a7 160000 --- a/dap-sdk +++ b/dap-sdk @@ -1 +1 @@ -Subproject commit d433979b5a48f7b0291e4ecf9d64aa67c9676782 +Subproject commit 7c637ae9ddb7903f7f78ceb1aa06cf067925b1a7 diff --git a/modules/net/dap_chain_ledger.c b/modules/net/dap_chain_ledger.c index 79b536b49915023c07a3596d7087c3a561b284c2..172b01803977ce04504682e1614bd5028cf6f5a3 100644 --- a/modules/net/dap_chain_ledger.c +++ b/modules/net/dap_chain_ledger.c @@ -4044,7 +4044,7 @@ static int s_tx_cache_check(dap_ledger_t *a_ledger, l_tx_prev = s_find_datum_tx_by_hash(a_ledger, l_tx_prev_hash, &l_item_out, false); char l_tx_prev_hash_str[DAP_HASH_FAST_STR_SIZE]; dap_hash_fast_to_str(l_tx_prev_hash, l_tx_prev_hash_str, DAP_HASH_FAST_STR_SIZE); - if (!l_tx_prev && !a_check_for_removing) { // Unchained transaction or previous TX was already spent and removed from ledger + if (!l_tx_prev) { // Unchained transaction or previous TX was already spent and removed from ledger debug_if(s_debug_more && !a_from_threshold, L_DEBUG, "No previous transaction was found for hash %s", l_tx_prev_hash_str); l_err_num = DAP_CHAIN_CS_VERIFY_CODE_TX_NO_PREVIOUS; break;