aboutsummaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_db.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-09 23:13:39 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-09 23:13:39 +0100
commitfba91c63d57d73732249b972127575ca1fd4d5ff (patch)
tree9ceedd346da020458124a235f928c9408a9df31b /src/exchange/taler-exchange-httpd_db.h
parent889625a90f97a23048b3c9dad418f86acb81314b (diff)
introduce stored procedure for coin balance check
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.h')
-rw-r--r--src/exchange/taler-exchange-httpd_db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.h b/src/exchange/taler-exchange-httpd_db.h
index 60885dbd..5ee3b41d 100644
--- a/src/exchange/taler-exchange-httpd_db.h
+++ b/src/exchange/taler-exchange-httpd_db.h
@@ -47,6 +47,9 @@ TEH_make_coin_known (const struct TALER_CoinPublicInfo *coin,
* insufficient for all transactions associated with the
* coin, return a hard error.
*
+ * We first do a "fast" check using a stored procedure, and
+ * only obtain the "full" data on failure (for performance).
+ *
* @param connection HTTP connection to report hard errors on
* @param coin_pub coin to analyze
* @param coin_value total value of the original coin (by denomination)