summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-29 12:47:46 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-29 12:47:46 +0200
commit6001eae48ba3f3ebe6733c6d8f3232f5c08a8657 (patch)
tree7b6b25a030960e430fac76ca7dd8891d95484ce3 /src
parente6c051c5f9a7391adead16212befea81d1e0c073 (diff)
downloadmerchant-6001eae48ba3f3ebe6733c6d8f3232f5c08a8657.tar.gz
merchant-6001eae48ba3f3ebe6733c6d8f3232f5c08a8657.tar.bz2
merchant-6001eae48ba3f3ebe6733c6d8f3232f5c08a8657.zip
initialize deposit timestamp
Diffstat (limited to 'src')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 98a608bc..ce87ecd7 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -2457,6 +2457,8 @@ lookup_transfer_details_by_order_cb (void *cls,
struct GNUNET_PQ_ResultSpec rs[] = {
GNUNET_PQ_result_spec_uint64 ("deposit_serial",
&deposit_serial),
+ GNUNET_PQ_result_spec_absolute_time ("deposit_timestamp",
+ &execution_time),
GNUNET_PQ_result_spec_string ("exchange_url",
&exchange_url),
GNUNET_PQ_result_spec_auto_from_type ("wtid",
@@ -7428,6 +7430,7 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
",exchange_deposit_value_frac"
",exchange_deposit_fee_val"
",exchange_deposit_fee_frac"
+ ",deposit_timestamp"
",mt.confirmed AS transfer_confirmed"
" FROM merchant_transfer_to_coin"
" JOIN merchant_deposits AS md USING (deposit_serial)"