From 345c141bad275828b35a4299a44e9d357998d6a4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 23 Apr 2022 20:50:27 +0200 Subject: -work on p2p payments --- src/exchangedb/plugin_exchangedb_postgres.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/exchangedb') 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 -- cgit v1.2.3