diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-23 20:50:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-23 20:50:27 +0200 |
commit | 345c141bad275828b35a4299a44e9d357998d6a4 (patch) | |
tree | bab53198242b73857a5fac295e79b5eb586b4d13 /src/exchangedb | |
parent | b7a4fd401e0a90e309b1be66714b2a0c932f2813 (diff) | |
download | exchange-345c141bad275828b35a4299a44e9d357998d6a4.tar.xz |
-work on p2p payments
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 5 |
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 |