[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[exchange] 03/03: remove optimization, breaks insertion of successor mea
From: |
gnunet |
Subject: |
[exchange] 03/03: remove optimization, breaks insertion of successor measures |
Date: |
Tue, 21 Jan 2025 13:01:24 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository exchange.
commit 6b6ec305e11dcbd98a5594ffba9a3ec96b9fcf24
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jan 21 13:01:10 2025 +0100
remove optimization, breaks insertion of successor measures
Check is brittle in presence of timestamp rounding
---
src/exchangedb/exchange_do_insert_kyc_measure_result.sql | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/exchangedb/exchange_do_insert_kyc_measure_result.sql
b/src/exchangedb/exchange_do_insert_kyc_measure_result.sql
index f38f1a91b..f3c41239a 100644
--- a/src/exchangedb/exchange_do_insert_kyc_measure_result.sql
+++ b/src/exchangedb/exchange_do_insert_kyc_measure_result.sql
@@ -38,10 +38,7 @@ BEGIN
-- Disactivate all previous outcomes.
UPDATE legitimization_outcomes
SET is_active=FALSE
- WHERE h_payto=in_h_payto
- -- this clause is a minor optimization to avoid
- -- updating outcomes that have long expired.
- AND expiration_time >= in_decision_time;
+ WHERE h_payto=in_h_payto;
-- Insert new rules
INSERT INTO legitimization_outcomes
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.