summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-23 20:50:27 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-23 20:50:27 +0200
commit345c141bad275828b35a4299a44e9d357998d6a4 (patch)
treebab53198242b73857a5fac295e79b5eb586b4d13 /src/exchangedb
parentb7a4fd401e0a90e309b1be66714b2a0c932f2813 (diff)
downloadexchange-345c141bad275828b35a4299a44e9d357998d6a4.tar.gz
exchange-345c141bad275828b35a4299a44e9d357998d6a4.tar.bz2
exchange-345c141bad275828b35a4299a44e9d357998d6a4.zip
-work on p2p payments
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index ff2dcbf42..93d71e594 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -8535,7 +8535,10 @@ postgres_get_global_fees (void *cls,
{
struct PostgresClosure *pg = cls;
struct GNUNET_TIME_Timestamp date
- = GNUNET_TIME_timestamp_get ();
+ = GNUNET_TIME_absolute_to_timestamp (
+ GNUNET_TIME_absolute_subtract (
+ GNUNET_TIME_absolute_get (),
+ GNUNET_TIME_UNIT_YEARS));
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_timestamp (&date),
GNUNET_PQ_query_param_end