summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-11 13:14:59 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-11 13:14:59 +0200
commitedc6d380824a2076f7f095a71b8cb5d53f32f6ce (patch)
treed97869d3b3c571c7f57f7e4f7a0194facc70a052 /src/include
parentbabeff1968b4076fa2f570af8c994727dd8fa09f (diff)
downloadexchange-edc6d380824a2076f7f095a71b8cb5d53f32f6ce.tar.gz
exchange-edc6d380824a2076f7f095a71b8cb5d53f32f6ce.tar.bz2
exchange-edc6d380824a2076f7f095a71b8cb5d53f32f6ce.zip
use execution time for transactions, but expiration time for reserve summary (fixes #3809)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_mintdb_plugin.h4
-rw-r--r--src/include/taler_signatures.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/include/taler_mintdb_plugin.h b/src/include/taler_mintdb_plugin.h
index d8644df8d..2d1671335 100644
--- a/src/include/taler_mintdb_plugin.h
+++ b/src/include/taler_mintdb_plugin.h
@@ -715,7 +715,6 @@ struct TALER_MINTDB_Plugin
* @param balance the amount that has to be added to the reserve
* @param details bank transaction details justifying the increment,
* must be unique for each incoming transaction
- * @param expiry the new expiration time for the reserve (#3809)
* @return #GNUNET_OK upon success; #GNUNET_NO if the given
* @a details are already known for this @a reserve_pub,
* #GNUNET_SYSERR upon failures (DB error, incompatible currency)
@@ -725,8 +724,7 @@ struct TALER_MINTDB_Plugin
struct TALER_MINTDB_Session *db,
const struct TALER_ReservePublicKeyP *reserve_pub,
const struct TALER_Amount *balance,
- const char *details,
- struct GNUNET_TIME_Absolute expiry);
+ const char *details);
/**
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h
index f1d271955..70fc1c0ad 100644
--- a/src/include/taler_signatures.h
+++ b/src/include/taler_signatures.h
@@ -40,6 +40,12 @@
*/
#define TALER_CNC_KAPPA 3
+/**
+ * After what time do idle reserves "expire"? We might want to make
+ * this a configuration option (eventually).
+ */
+#define TALER_IDLE_RESERVE_EXPIRATION_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_YEARS, 5)
+
/*********************************************/
/* Mint offline signatures (with master key) */
/*********************************************/